Exception: Patm::NoMatchError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/patm.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ NoMatchError

Returns a new instance of NoMatchError.



3
4
5
6
# File 'lib/patm.rb', line 3

def initialize(value)
  super("Pattern not match: value=#{value.inspect}")
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



7
8
9
# File 'lib/patm.rb', line 7

def value
  @value
end