Class: Mobb::Matcher::Matched
- Inherits:
-
Object
- Object
- Mobb::Matcher::Matched
- Defined in:
- lib/mobb/base.rb
Instance Attribute Summary collapse
-
#matched ⇒ Object
readonly
Returns the value of attribute matched.
-
#pattern ⇒ Object
readonly
Returns the value of attribute pattern.
Instance Method Summary collapse
-
#initialize(pattern, matched) ⇒ Matched
constructor
A new instance of Matched.
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
#matched ⇒ Object (readonly)
Returns the value of attribute matched.
26 27 28 |
# File 'lib/mobb/base.rb', line 26 def matched @matched end |
#pattern ⇒ Object (readonly)
Returns the value of attribute pattern.
26 27 28 |
# File 'lib/mobb/base.rb', line 26 def pattern @pattern end |