Class: SimpleFormEpicEditor::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

TODO: Make everything customizable!



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/simple_form_epic_editor/configuration.rb', line 8

def initialize
  @commands = {
    edit: 'Write',
    preview: 'Preview'
  }
  @theme = {
    base: '/simple_form_epic_editor/default_theme/base.css',
    preview: '/simple_form_epic_editor/default_theme/preview.css',
    editor: '/simple_form_epic_editor/default_theme/editor.css'
  }
end

Instance Attribute Details

#commandsObject

Returns the value of attribute commands.



4
5
6
# File 'lib/simple_form_epic_editor/configuration.rb', line 4

def commands
  @commands
end

#themeObject

Returns the value of attribute theme.



4
5
6
# File 'lib/simple_form_epic_editor/configuration.rb', line 4

def theme
  @theme
end