Class: Const

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Const) initialize(value)





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

def initialize(value)
  @value = value
end

Instance Attribute Details

- (Object) value (readonly)

Returns the value of attribute value



33
34
35
# File 'lib/mdarray/operators.rb', line 33

def value
  @value
end

Instance Method Details

- (Object) get(index)





55
56
57
# File 'lib/mdarray/operators.rb', line 55

def get(index)
  @value
end

- (Object) get_current





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

def get_current
  @value
end

- (Object) get_iterator_fast





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

def get_iterator_fast
  return self
end

- (Object) get_next





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

def get_next
  @value
end