Class: Mobb::Matcher::Matched
- Inherits:
-
Object
- Object
- Mobb::Matcher::Matched
- Defined in:
- lib/mobb/base.rb
Instance Attribute Summary collapse
-
#captures ⇒ Object
readonly
Returns the value of attribute captures.
-
#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.
31 |
# File 'lib/mobb/base.rb', line 31 def initialize(pattern, matched) @pattern, @matched, @captures = pattern, matched, matched.captures; end |
Instance Attribute Details
#captures ⇒ Object (readonly)
Returns the value of attribute captures.
30 31 32 |
# File 'lib/mobb/base.rb', line 30 def captures @captures end |
#matched ⇒ Object (readonly)
Returns the value of attribute matched.
30 31 32 |
# File 'lib/mobb/base.rb', line 30 def matched @matched end |
#pattern ⇒ Object (readonly)
Returns the value of attribute pattern.
30 31 32 |
# File 'lib/mobb/base.rb', line 30 def pattern @pattern end |