Class: VectorSpace::DimensionReflection

Inherits:
ComponentReflection show all
Defined in:
lib/vector_space/dimension_reflection.rb

Instance Attribute Summary

Attributes inherited from ComponentReflection

#component, #options

Instance Method Summary collapse

Methods inherited from ComponentReflection

#getter, #initialize, #to_s, #value

Constructor Details

This class inherits a constructor from VectorSpace::ComponentReflection

Instance Method Details

#defaultObject



7
8
9
# File 'lib/vector_space/dimension_reflection.rb', line 7

def default
  zero
end

#zeroObject



3
4
5
# File 'lib/vector_space/dimension_reflection.rb', line 3

def zero
  @options[:zero] || 0
end