Class: TrangeFrange::Hundred

Inherits:
Struct
  • Object
show all
Includes:
BaseHelper
Defined in:
lib/trange_frange/hundred.rb

Constant Summary collapse

HUNDREDS =
{
  '0' => '',
  '1' => 'jedna stotina',
  '2' => 'dve stotine',
  '3' => 'tri stotine',
  '4' => 'četiri stotine',
  '5' => 'pet stotina',
  '6' => 'šest stotina',
  '7' => 'sedam stotina',
  '8' => 'osam stotina',
  '9' => 'devet stotina'
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#baseObject

Returns the value of attribute base

Returns:

  • (Object)

    the current value of base



4
5
6
# File 'lib/trange_frange/hundred.rb', line 4

def base
  @base
end

Instance Method Details

#wordObject



20
21
22
23
# File 'lib/trange_frange/hundred.rb', line 20

def word
  order_condition.add { HUNDREDS[object_base.member.hundred] }
  order_condition.match!
end