Class: DecoratorDryer::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/decorator_dryer/configuration.rb

Defined Under Namespace

Classes: AttachmentShortcutsConfig

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_shortcutsObject (readonly)

Returns the value of attribute attachment_shortcuts.



9
10
11
# File 'lib/decorator_dryer/configuration.rb', line 9

def attachment_shortcuts
  @attachment_shortcuts
end

#date_formatObject

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_formatObject

Returns the value of attribute datetime_format.



5
6
7
# File 'lib/decorator_dryer/configuration.rb', line 5

def datetime_format
  @datetime_format
end

#extensionsObject

Returns the value of attribute extensions.



5
6
7
# File 'lib/decorator_dryer/configuration.rb', line 5

def extensions
  @extensions
end

#humanized_date_formatObject

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_formatObject

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_formatObject

Returns the value of attribute time_format.



5
6
7
# File 'lib/decorator_dryer/configuration.rb', line 5

def time_format
  @time_format
end