Class: DefMastership::MatchingLine
- Inherits:
-
Struct
- Object
- Struct
- DefMastership::MatchingLine
- Defined in:
- lib/defmastership/matching_line.rb
Overview
a composite class
Instance Attribute Summary collapse
-
#line ⇒ Object
Returns the value of attribute line.
-
#match ⇒ Object
Returns the value of attribute match.
Instance Method Summary collapse
Instance Attribute Details
#line ⇒ Object
Returns the value of attribute line
6 7 8 |
# File 'lib/defmastership/matching_line.rb', line 6 def line @line end |
#match ⇒ Object
Returns the value of attribute match
6 7 8 |
# File 'lib/defmastership/matching_line.rb', line 6 def match @match end |
Instance Method Details
#[](key) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/defmastership/matching_line.rb', line 8 def [](key) value = match[key] return value if value super end |