Class: Const
- Inherits:
-
Object
- Object
- Const
- Defined in:
- lib/mdarray/operators.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#get(index) ⇒ Object
—————————————————————————————.
-
#get_current ⇒ Object
—————————————————————————————.
-
#get_iterator_fast ⇒ Object
—————————————————————————————.
-
#get_next ⇒ Object
—————————————————————————————.
-
#initialize(value) ⇒ Const
constructor
—————————————————————————————.
Constructor Details
#initialize(value) ⇒ Const
39 40 41 |
# File 'lib/mdarray/operators.rb', line 39 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
33 34 35 |
# File 'lib/mdarray/operators.rb', line 33 def value @value end |
Instance Method Details
#get(index) ⇒ Object
55 56 57 |
# File 'lib/mdarray/operators.rb', line 55 def get(index) @value end |
#get_current ⇒ Object
71 72 73 |
# File 'lib/mdarray/operators.rb', line 71 def get_current @value end |
#get_iterator_fast ⇒ Object
47 48 49 |
# File 'lib/mdarray/operators.rb', line 47 def get_iterator_fast return self end |
#get_next ⇒ Object
63 64 65 |
# File 'lib/mdarray/operators.rb', line 63 def get_next @value end |