Exception: Atomy::UnknownPattern

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/atomy/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ UnknownPattern

Returns a new instance of UnknownPattern.



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

def initialize(node)
  @node = node
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



5
6
7
# File 'lib/atomy/errors.rb', line 5

def node
  @node
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/atomy/errors.rb', line 11

def to_s
  "unknown pattern: #{node}"
end