module RedParse::FlattenedIvars
Constants
- EXCLUDED_IVARS
Public Instance Methods
flattened_ivars()
click to toggle source
EXCLUDED_IVARS.push(*EXCLUDED_IVARS.map{|iv| iv.to_sym })
# File lib/redparse/node.rb, line 45 def flattened_ivars ivars=instance_variables.map{|v| v.to_s } ivars-=EXCLUDED_IVARS ivars.sort! result=ivars+ivars.map{|iv| instance_variable_get(iv) } return result end
flattened_ivars_equal?(other)
click to toggle source
# File lib/redparse/node.rb, line 55 def flattened_ivars_equal?(other) self.class == other.class and flattened_ivars == other.flattened_ivars end