Exception: Atomy::UnknownCode
- Defined in:
- lib/atomy/errors.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(node) ⇒ UnknownCode
constructor
A new instance of UnknownCode.
- #to_s ⇒ Object
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
#node ⇒ Object (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_s ⇒ Object
23 24 25 |
# File 'lib/atomy/errors.rb', line 23 def to_s "unknown code: #{node}" end |