File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -59,13 +59,31 @@ ident(p) ident(x)operator(.)ident(method_name)
59
59
ident(x) operator(=) constant(Baz)operator(.)ident(new)
60
60
ident(p) ident(x)operator(.)ident(method_name)
61
61
62
+ comment(# Refinements)
63
+ keyword(module) class(FloatDivision)
64
+ ident(refine) constant(Fixnum) keyword(do)
65
+ keyword(def) method(/)operator(()ident(other)operator(\))
66
+ predefined_constant(self)operator(.)ident(to_f) operator(/) ident(other)
67
+ keyword(end)
68
+ keyword(end)
69
+ keyword(end)
70
+
71
+ keyword(class) class(MathFun)
72
+ ident(using) constant(FloatDivision)
73
+ keyword(def) predefined_constant(self)operator(.)method(ratio)operator(()ident(a)operator(,) ident(b)operator(\))
74
+ ident(a)operator(/)ident(b)
75
+ keyword(end)
76
+ keyword(end)
77
+
78
+ ident(p) constant(MathFun)operator(.)ident(ratio)operator(()integer(6)operator(,) integer(8)operator(\))
79
+
62
80
comment(# Misc)
63
81
ident(p) predefined_constant(nil)operator(.)ident(to_h)
64
82
ident(p) ident(Hash)operator(()operator([)operator(])operator(\))
65
83
66
- ident(days) operator(=) operator(%)ident(i)operator({)ident (sun) ident( mon) ident( tue) ident( wed) ident( thu) ident( fri) ident( sat)operator (})
84
+ ident(days) operator(=) symbol<delimiter(%i{)content (sun mon tue wed thu fri sat)delimiter (})>
67
85
ident(p) ident(days)
68
- ident(p) operator(%)constant(I)operator({) comment (#{1*3} }, %w{jan feb mar})
86
+ ident(p) symbol<delimiter(%I{)content( )inline<inline_delimiter (#{)integer(1)operator(*)integer(3)inline_delimiter(})>content( )delimiter(})>operator(,) string<delimiter( %w{)content( jan feb mar)delimiter(})>
69
87
70
88
ident(puts) ident(__dir__)
71
89
ident(puts) constant(File)operator(.)ident(dirname)operator(()constant(File)operator(.)ident(realpath)operator(()predefined_constant(__FILE__)operator(\))operator(\))
You can’t perform that action at this time.
0 commit comments