had forgotten calls on instance variables. corrected + tests
This commit is contained in:
@ -40,6 +40,10 @@ module Ast
|
||||
def initialize name
|
||||
super( :_get_instance_variable , [StringExpression.new(name)] )
|
||||
end
|
||||
def inspect
|
||||
self.class.name + ".new(" + args[0].string.inspect + ")"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
@ -9,7 +9,7 @@ module Parser
|
||||
space? >> right_parenthesis
|
||||
}
|
||||
|
||||
rule(:call_site) { ((module_name|name).as(:receiver) >> str(".")).maybe >> #possibly qualified
|
||||
rule(:call_site) { ((module_name|instance_variable|name).as(:receiver) >> str(".")).maybe >> #possibly qualified
|
||||
name.as(:call_site) >> argument_list >> comment.maybe}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user