Module: Beerxml::Unit::Time

Included in:
Beerxml::Unit
Defined in:
lib/beerxml/unit.rb

Class Method Summary collapse

Class Method Details

.included(k) ⇒ Object



123
124
125
126
127
# File 'lib/beerxml/unit.rb', line 123

def self.included(k)
  k.add_type('time', 'day', 'days')
  k.add('time', 24, 'hour', 'hours')
  k.add('time', 1440, 'minute', 'minutes')
end