~ubuntu-branches/ubuntu/trusty/ruby1.9/trusty

« back to all changes in this revision

Viewing changes to ext/ripper/test/list-called-events.rb

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2006-05-08 22:23:12 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060508222312-w2wqeaz030ifi59j
Tags: 1.9.0+20060423-3ubuntu1
* Resynchronized with Debian.
* Only change from Debian is the addition of
  debian/patches/903_sparc_fix_define.patch to fix illegal instructions
  at runtime on sparc. (change from 1.9.0+20050921-1ubuntu1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
require 'ripper.so'
2
 
 
3
 
class R < Ripper
4
 
  def method_missing(mid, *args)
5
 
    puts mid
6
 
    args[0]
7
 
  end
8
 
  undef :warn
9
 
end
10
 
 
11
 
fname = (ARGV[0] || 'test/src_rb')
12
 
R.new(File.read(fname), fname, 1).parse