class Wongi::Engine::WMEMatchData
Attributes
assignments[R]
Public Class Methods
new(assignments = { })
click to toggle source
# File lib/wongi-engine/wme_match_data.rb, line 7 def initialize assignments = { }, match = false @assignments = assignments @match = match end
Public Instance Methods
&(other)
click to toggle source
# File lib/wongi-engine/wme_match_data.rb, line 28 def & other WMEMatchData.new( assignments.merge( other.assignments ), match? && other.match? ) end
[](key)
click to toggle source
# File lib/wongi-engine/wme_match_data.rb, line 12 def [] key assignments[key] end
[]=(key, value)
click to toggle source
# File lib/wongi-engine/wme_match_data.rb, line 16 def []= key, value assignments[key] = value end
match!()
click to toggle source
# File lib/wongi-engine/wme_match_data.rb, line 24 def match! @match = true end
match?()
click to toggle source
# File lib/wongi-engine/wme_match_data.rb, line 20 def match? @match end