Class: View::Phone

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

Overview

Formats with the number_to_phone helper

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



8
9
10
# File 'lib/view/formatters/phone.rb', line 8

def format
  template.number_to_phone(value, options)
end