Class: Mustermann::Set::Match

Inherits:
Match
  • Object
show all
Defined in:
lib/mustermann/set/match.rb

Instance Attribute Summary collapse

Attributes inherited from Match

#params, #pattern, #post_match, #pre_match, #string

Instance Method Summary collapse

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, **options)
  @value = value
  super(match || Mustermann::Match.new(*args, **options))
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



8
9
10
# File 'lib/mustermann/set/match.rb', line 8

def value
  @value
end