Class: PowersDemo::Location
- Inherits:
-
Object
- Object
- PowersDemo::Location
- Defined in:
- lib/modules/topics/demos/powers_demo.rb
Instance Attribute Summary collapse
-
#coordinates ⇒ Object
Returns the value of attribute coordinates.
Instance Method Summary collapse
-
#initialize(coordinates) ⇒ Location
constructor
A new instance of Location.
Constructor Details
#initialize(coordinates) ⇒ Location
36 37 38 |
# File 'lib/modules/topics/demos/powers_demo.rb', line 36 def initialize(coordinates) @coordinates = coordinates end |
Instance Attribute Details
#coordinates ⇒ Object
Returns the value of attribute coordinates.
34 35 36 |
# File 'lib/modules/topics/demos/powers_demo.rb', line 34 def coordinates @coordinates end |