Method: FormatEngine::Engine#do_format
- Defined in:
- lib/format_engine/engine.rb
#do_format(src, format_spec_str) ⇒ Object
Do the actual work of building the formatted output.
Parameters
-
src - The source object being formatted.
-
format_spec_str - The format specification string.
38 39 40 41 42 43 44 |
# File 'lib/format_engine/engine.rb', line 38 def do_format(src, format_spec_str) spec_info = SpecInfo.new(src, "", self) due_process(spec_info, format_spec_str) do |format| spec_info.do_format(format) end end |