class Namie::Formatter
Format name
Constants
- ABBR
- FORMATS
Attributes
format[RW]
name[RW]
out[RW]
Public Class Methods
new(name, format)
click to toggle source
# File lib/namie/formatter.rb, line 19 def initialize(name, format) @name = name format ||= :default @format = format.is_a?(Symbol) ? FORMATS[format] : format @out = @format.dup end