Class: Holistic::Ruby::Scope::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/holistic/ruby/scope/location.rb

Defined Under Namespace

Classes: Collection

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(declaration:, body:) ⇒ Location

Returns a new instance of Location.



38
39
40
41
# File 'lib/holistic/ruby/scope/location.rb', line 38

def initialize(declaration:, body:)
  @declaration = declaration
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



36
37
38
# File 'lib/holistic/ruby/scope/location.rb', line 36

def body
  @body
end

#declarationObject (readonly)

Returns the value of attribute declaration.



36
37
38
# File 'lib/holistic/ruby/scope/location.rb', line 36

def declaration
  @declaration
end