Class: Stark::Parser::AST::Exception
- Defined in:
- lib/stark/ast.rb,
lib/stark/raw_parser.rb
Instance Attribute Summary collapse
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #accept(obj) ⇒ Object
-
#initialize(name, fields) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(name, fields) ⇒ Exception
Returns a new instance of Exception.
409 410 411 412 |
# File 'lib/stark/raw_parser.rb', line 409 def initialize(name, fields) @name = name @fields = fields end |
Instance Attribute Details
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
414 415 416 |
# File 'lib/stark/raw_parser.rb', line 414 def fields @fields end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
413 414 415 |
# File 'lib/stark/raw_parser.rb', line 413 def name @name end |
Instance Method Details
#accept(obj) ⇒ Object
48 49 50 |
# File 'lib/stark/ast.rb', line 48 def accept(obj) obj.process_exception self end |