Class: Holistic::Ruby::Scope::Location
- Inherits:
-
Object
- Object
- Holistic::Ruby::Scope::Location
- Defined in:
- lib/holistic/ruby/scope/location.rb
Defined Under Namespace
Classes: Collection
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#declaration ⇒ Object
readonly
Returns the value of attribute declaration.
Instance Method Summary collapse
-
#initialize(declaration:, body:) ⇒ Location
constructor
A new instance of Location.
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
#body ⇒ Object (readonly)
Returns the value of attribute body.
36 37 38 |
# File 'lib/holistic/ruby/scope/location.rb', line 36 def body @body end |
#declaration ⇒ Object (readonly)
Returns the value of attribute declaration.
36 37 38 |
# File 'lib/holistic/ruby/scope/location.rb', line 36 def declaration @declaration end |