Class: DecoratorDryer::Configuration
- Inherits:
-
Object
- Object
- DecoratorDryer::Configuration
- Defined in:
- lib/decorator_dryer/configuration.rb
Defined Under Namespace
Classes: AttachmentShortcutsConfig
Instance Attribute Summary collapse
-
#attachment_shortcuts ⇒ Object
readonly
Returns the value of attribute attachment_shortcuts.
-
#date_format ⇒ Object
Returns the value of attribute date_format.
-
#datetime_format ⇒ Object
Returns the value of attribute datetime_format.
-
#extensions ⇒ Object
Returns the value of attribute extensions.
-
#humanized_date_format ⇒ Object
Returns the value of attribute humanized_date_format.
-
#humanized_datetime_format ⇒ Object
Returns the value of attribute humanized_datetime_format.
-
#time_format ⇒ Object
Returns the value of attribute time_format.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 15 16 17 18 19 |
# File 'lib/decorator_dryer/configuration.rb', line 11 def initialize @date_format = "%Y-%m-%d" @humanized_date_format = "%d/%m/%Y" @datetime_format = "%Y-%m-%d %H:%M" @humanized_datetime_format = "%H:%M %d/%m/%Y" @time_format = "%H:%M" @attachment_shortcuts = AttachmentShortcutsConfig.new @extensions = [] end |
Instance Attribute Details
#attachment_shortcuts ⇒ Object (readonly)
Returns the value of attribute attachment_shortcuts.
9 10 11 |
# File 'lib/decorator_dryer/configuration.rb', line 9 def @attachment_shortcuts end |
#date_format ⇒ Object
Returns the value of attribute date_format.
5 6 7 |
# File 'lib/decorator_dryer/configuration.rb', line 5 def date_format @date_format end |
#datetime_format ⇒ Object
Returns the value of attribute datetime_format.
5 6 7 |
# File 'lib/decorator_dryer/configuration.rb', line 5 def datetime_format @datetime_format end |
#extensions ⇒ Object
Returns the value of attribute extensions.
5 6 7 |
# File 'lib/decorator_dryer/configuration.rb', line 5 def extensions @extensions end |
#humanized_date_format ⇒ Object
Returns the value of attribute humanized_date_format.
5 6 7 |
# File 'lib/decorator_dryer/configuration.rb', line 5 def humanized_date_format @humanized_date_format end |
#humanized_datetime_format ⇒ Object
Returns the value of attribute humanized_datetime_format.
5 6 7 |
# File 'lib/decorator_dryer/configuration.rb', line 5 def humanized_datetime_format @humanized_datetime_format end |
#time_format ⇒ Object
Returns the value of attribute time_format.
5 6 7 |
# File 'lib/decorator_dryer/configuration.rb', line 5 def time_format @time_format end |