Method: SimpleUnits::Context.get_context

Defined in:
lib/simple_units/context.rb

.get_context(name) ⇒ Object



10
11
12
13
# File 'lib/simple_units/context.rb', line 10

def get_context(name)
  throw :UndefinedUnitError if @contexts[name].nil?
  @contexts[name.to_s]
end