class Wongi::Engine::WMEMatchData
Attributes
assignments[R]
Public Class Methods
new(assignments = {}, match = false)
click to toggle source
# File lib/wongi-engine/wme_match_data.rb, line 5 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 26 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 10 def [](key) assignments[key] end
[]=(key, value)
click to toggle source
# File lib/wongi-engine/wme_match_data.rb, line 14 def []=(key, value) assignments[key] = value end
match!()
click to toggle source
# File lib/wongi-engine/wme_match_data.rb, line 22 def match! @match = true end
match?()
click to toggle source
# File lib/wongi-engine/wme_match_data.rb, line 18 def match? @match end