Class: Collie::AST::UnknownDeclaration

Inherits:
Object
  • Object
show all
Defined in:
lib/collie/ast.rb

Overview

Declaration node for directives Collie does not understand yet.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#locationObject

Returns the value of attribute location.



89
90
91
# File 'lib/collie/ast.rb', line 89

def location
  @location
end

#sourceObject

Returns the value of attribute source.



89
90
91
# File 'lib/collie/ast.rb', line 89

def source
  @source
end