Class: Mobb::Matcher::Matched

Inherits:
Object
  • Object
show all
Defined in:
lib/mobb/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pattern, matched) ⇒ Matched

Returns a new instance of Matched.



27
# File 'lib/mobb/base.rb', line 27

def initialize(pattern, matched) @pattern, @matched = pattern, matched; end

Instance Attribute Details

#matchedObject (readonly)

Returns the value of attribute matched.



26
27
28
# File 'lib/mobb/base.rb', line 26

def matched
  @matched
end

#patternObject (readonly)

Returns the value of attribute pattern.



26
27
28
# File 'lib/mobb/base.rb', line 26

def pattern
  @pattern
end