File indexing completed on 2024-05-19 04:38:18

0001 
0002 def foo? a
0003   a = 0
0004   while a < 5
0005     a += 1
0006   end
0007 rescue
0008   b = 5
0009 else
0010   c = 3
0011 ensure
0012   d = 9
0013 end
0014 
0015 def foo a,
0016     b
0017 end
0018 
0019 def foo(a, b)
0020 end
0021 
0022 def a.append_features(klass)
0023   super
0024 
0025   klass.install_must_call_validator('', ::RSS::URI)
0026 end
0027 
0028 # Singleton
0029 
0030 class Single
0031   def foo a = 2, b
0032     25
0033   end
0034 end
0035 
0036 s = Single.new
0037 puts s.foo
0038 
0039 def s.foo a = 2
0040   20
0041 end
0042 
0043 puts s.foo
0044 
0045 # Defining functions with a weird argument list
0046 
0047 def aa a, b, c
0048 end
0049 
0050 def bb a = 1, b = 2, c = 3
0051 end
0052 
0053 def funny *a, c, b, &d
0054 end
0055 
0056 def jolly a = 0, b = 1, c, d, &e
0057 end
0058 
0059 def fuck! a = 0, b = 1, *c, d, e, &f
0060 end
0061 
0062 def nice a = 0, b = 1, *c, &d
0063 end
0064 
0065 def yeah! a, b, c = 1, d = 2, e, f, &g
0066 end
0067 
0068 def head_shot! a, b, c = 1, d = 2, *e, f, g, &h
0069 end
0070 
0071 def final a, b, c = 1, d = 2, *e, &h
0072 end
0073 
0074 def == other
0075 end
0076 
0077 def another(a=1)
0078 end
0079 
0080 def a.b=(val)
0081 end
0082 
0083 def initialize parent=nil
0084 end
0085 
0086 def `(p1)
0087 end
0088 
0089 def self.[]; end
0090 
0091 class A
0092 end
0093 
0094 def <<(obj)
0095   log(INFO, obj.to_s)
0096 end
0097 
0098 def %(x)
0099 end
0100 
0101 def foo a, *; end