Class: Const

Inherits:
Object
  • Object
show all
Defined in:
lib/mdarray/operators.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Const





39
40
41
# File 'lib/mdarray/operators.rb', line 39

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (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_currentObject





71
72
73
# File 'lib/mdarray/operators.rb', line 71

def get_current
  @value
end

#get_iterator_fastObject





47
48
49
# File 'lib/mdarray/operators.rb', line 47

def get_iterator_fast
  return self
end

#get_nextObject





63
64
65
# File 'lib/mdarray/operators.rb', line 63

def get_next
  @value
end