Class: Boundy::Formatters::Time::Factory
- Inherits:
-
Object
- Object
- Boundy::Formatters::Time::Factory
- Defined in:
- lib/boundy/formatters/time.rb
Instance Method Summary collapse
- #build(time, name) ⇒ Object
-
#initialize(format) ⇒ Factory
constructor
A new instance of Factory.
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 |