Class: View::Delimited

Inherits:
Formatter show all
Defined in:
lib/view/formatters/delimited.rb

Overview

Delegate rendering to the number_with_delimiter helper from Rails.

See Also:

Instance Attribute Summary

Attributes inherited from Formatter

#block, #template, #value

Instance Method Summary (collapse)

Methods inherited from Formatter

#all_options, as, #format!, inherited, #options, skip_blank_formatter, #to_s, type

Instance Method Details

- (Object) format



9
10
11
# File 'lib/view/formatters/delimited.rb', line 9

def format
  template.number_with_delimiter(value, options)
end