Module: JRubyParser::Value

Class Method Summary collapse

Class Method Details

.included(cls) ⇒ Object



17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/jruby-parser/util/coercer.rb', line 17

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

      setValue(value)
    end
  end
end