Class: Stark::Parser::AST::Exception

Inherits:
Node
  • Object
show all
Defined in:
lib/stark/ast.rb,
lib/stark/raw_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fieldsObject (readonly)

Returns the value of attribute fields.



414
415
416
# File 'lib/stark/raw_parser.rb', line 414

def fields
  @fields
end

#nameObject (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