Class: Mustermann::Set::Match
- Defined in:
- lib/mustermann/set/match.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Match
#params, #pattern, #post_match, #pre_match, #string
Instance Method Summary collapse
-
#initialize(*args, value: nil, match: nil, **options) ⇒ Match
constructor
A new instance of Match.
Methods inherited from Match
#[], #deconstruct_keys, #eql?, #hash, #values_at
Constructor Details
#initialize(*args, value: nil, match: nil, **options) ⇒ Match
Returns a new instance of Match.
10 11 12 13 |
# File 'lib/mustermann/set/match.rb', line 10 def initialize(*args, value: nil, match: nil, **) @value = value super(match || Mustermann::Match.new(*args, **)) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
8 9 10 |
# File 'lib/mustermann/set/match.rb', line 8 def value @value end |