Class: Collie::AST::UnknownDeclaration
- Inherits:
-
Object
- Object
- Collie::AST::UnknownDeclaration
- Defined in:
- lib/collie/ast.rb
Overview
Declaration node for directives Collie does not understand yet.
Instance Attribute Summary collapse
-
#location ⇒ Object
Returns the value of attribute location.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source:, location: nil) ⇒ UnknownDeclaration
constructor
A new instance of UnknownDeclaration.
Constructor Details
#initialize(source:, location: nil) ⇒ UnknownDeclaration
Returns a new instance of UnknownDeclaration.
91 92 93 94 |
# File 'lib/collie/ast.rb', line 91 def initialize(source:, location: nil) @source = source @location = location end |
Instance Attribute Details
#location ⇒ Object
Returns the value of attribute location.
89 90 91 |
# File 'lib/collie/ast.rb', line 89 def location @location end |
#source ⇒ Object
Returns the value of attribute source.
89 90 91 |
# File 'lib/collie/ast.rb', line 89 def source @source end |