Class: Oso::Polar::Variable
- Inherits:
-
Object
- Object
- Oso::Polar::Variable
- Defined in:
- lib/oso/polar/variable.rb
Overview
Polar variable.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Variable
constructor
A new instance of Variable.
- #to_s ⇒ String
Constructor Details
#initialize(name) ⇒ Variable
Returns a new instance of Variable.
10 11 12 |
# File 'lib/oso/polar/variable.rb', line 10 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/oso/polar/variable.rb', line 7 def name @name end |
Instance Method Details
#to_s ⇒ String
15 16 17 |
# File 'lib/oso/polar/variable.rb', line 15 def to_s name end |