Module: XlsFunction::FormatString

Defined in:
lib/xls_function/format_string.rb,
lib/xls_function/format_string/parser.rb,
lib/xls_function/format_string/transform.rb,
lib/xls_function/format_string/parse_rules/dates.rb,
lib/xls_function/format_string/parse_rules/texts.rb,
lib/xls_function/format_string/parse_rules/times.rb,
lib/xls_function/format_string/parse_rules/numbers.rb,
lib/xls_function/format_string/transform_rules/dates.rb,
lib/xls_function/format_string/transform_rules/texts.rb,
lib/xls_function/format_string/transform_rules/times.rb,
lib/xls_function/format_string/transform_rules/numbers.rb,
lib/xls_function/format_string/evaluators/time_evaluator.rb,
lib/xls_function/format_string/evaluators/number_evaluator.rb,
lib/xls_function/format_string/evaluators/elapsed_time_evaluator.rb

Defined Under Namespace

Modules: Evaluators, ParseRules, TransformRules Classes: Parser, Transform

Class Method Summary collapse

Class Method Details

.evaluate_converter(format_string, context) ⇒ Object



17
18
19
20
21
# File 'lib/xls_function/format_string.rb', line 17

def evaluate_converter(format_string, context)
  parser = XlsFunction::FormatString::Parser.new
  transform = XlsFunction::FormatString::Transform.new
  transform.apply(parser.parse(format_string), context)
end