Exception: Atomy::UnknownCode

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ UnknownCode

Returns a new instance of UnknownCode.



19
20
21
# File 'lib/atomy/errors.rb', line 19

def initialize(node)
  @node = node
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



17
18
19
# File 'lib/atomy/errors.rb', line 17

def node
  @node
end

Instance Method Details

#to_sObject



23
24
25
# File 'lib/atomy/errors.rb', line 23

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