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.
49 50 51 |
# File 'lib/forma/config.rb', line 49 def initialize self.formatter = '%d-%b-%Y' end |
Instance Attribute Details
#formatter ⇒ Object
Returns the value of attribute formatter.
48 49 50 |
# File 'lib/forma/config.rb', line 48 def formatter @formatter end |