Module: JRubyParser::Receiver

Class Method Summary collapse

Class Method Details

.included(cls) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/jruby-parser/util/coercer.rb', line 3

def self.included(cls)
  cls.class_eval do
    def receiver=(value)
      old_value = getReceiver
      if value.respond_to? :to_ast_node
        value = value.to_ast_node(old_value.position) 
      end
      setReceiver(value)
    end
  end
end