class RedParse::Conditional
Attributes
action[R]
condition[R]
Public Class Methods
new(condition,action)
click to toggle source
# File lib/redparse/compile.rb, line 653 def initialize(condition,action) @condition,@action=condition,action @condition.restore :hash,:== end
Public Instance Methods
==(other)
click to toggle source
# File lib/redparse/compile.rb, line 662 def == other Conditional===other and @condition==other.condition and @action==other.action end
Also aliased as: eql?
hash()
click to toggle source
# File lib/redparse/compile.rb, line 659 def hash @condition.hash^@action.hash end
name()
click to toggle source
# File lib/redparse/compile.rb, line 667 def name; @condition.inspect+"?"+@action.name end
priority()
click to toggle source
# File lib/redparse/compile.rb, line 669 def priority; @action.priority end