Exception: Atomy::UnknownPattern
- 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) ⇒ UnknownPattern
constructor
A new instance of UnknownPattern.
- #to_s ⇒ Object
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
#node ⇒ Object (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_s ⇒ Object
11 12 13 |
# File 'lib/atomy/errors.rb', line 11 def to_s "unknown pattern: #{node}" end |