Module: CEML::Lexer::Distance1

Defined in:
lib/ceml/lang/tt/lexer.rb

Instance Method Summary collapse

Instance Method Details

#metersObject



880
881
882
883
884
# File 'lib/ceml/lang/tt/lexer.rb', line 880

def meters
  number.text_value.to_f * case distance_unit.text_value
  when /^mi/; 1600; when /^k/;  1000; when /^m/;  1;
  when /^f/;  0.35; when /^b/;  200; else 1; end
end