Class: Boundy::Formatters::Time::Factory

Inherits:
Object
  • Object
show all
Defined in:
lib/boundy/formatters/time.rb

Instance Method Summary collapse

Constructor Details

#initialize(format) ⇒ Factory

Returns a new instance of Factory.



10
11
12
# File 'lib/boundy/formatters/time.rb', line 10

def initialize(format)
  @format = format
end

Instance Method Details

#build(time, name) ⇒ Object



14
15
16
# File 'lib/boundy/formatters/time.rb', line 14

def build(time, name)
  Boundy::Formatters::Time.new(@format, time)
end