Class: Dimensional::Configurator::Context

Inherits:
Struct
  • Object
show all
Defined in:
lib/dimensional/configurator.rb

Overview

A simple container for holding a context for definition, parsing and formatting of dimensional data

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dimensionObject

Returns the value of attribute dimension

Returns:

  • (Object)

    the current value of dimension



12
13
14
# File 'lib/dimensional/configurator.rb', line 12

def dimension
  @dimension
end

#systemObject

Returns the value of attribute system

Returns:

  • (Object)

    the current value of system



12
13
14
# File 'lib/dimensional/configurator.rb', line 12

def system
  @system
end

#unitObject

Returns the value of attribute unit

Returns:

  • (Object)

    the current value of unit



12
13
14
# File 'lib/dimensional/configurator.rb', line 12

def unit
  @unit
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/dimensional/configurator.rb', line 13

def valid?
  true
end