Class: Forma::DateConfig
- Inherits:
-
Object
- Object
- Forma::DateConfig
- Defined in:
- lib/forma/config.rb
Instance Attribute Summary collapse
-
#formatter ⇒ Object
Returns the value of attribute formatter.
Instance Method Summary collapse
-
#initialize ⇒ DateConfig
constructor
A new instance of DateConfig.
Constructor Details
#initialize ⇒ DateConfig
Returns a new instance of DateConfig.
45 46 47 |
# File 'lib/forma/config.rb', line 45 def initialize self.formatter = '%d-%b-%Y' end |
Instance Attribute Details
#formatter ⇒ Object
Returns the value of attribute formatter.
44 45 46 |
# File 'lib/forma/config.rb', line 44 def formatter @formatter end |