Class: Formily::Config
- Inherits:
-
Object
- Object
- Formily::Config
- Defined in:
- lib/formily/config.rb
Overview
Formily gem settings
Instance Method Summary collapse
- #editor ⇒ Formily::EditorConfig
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #paperclip ⇒ Formily::PaperclipConfig
-
#setup {|_self| ... } ⇒ Object
Set variable in do-end block.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
6 7 8 9 |
# File 'lib/formily/config.rb', line 6 def initialize @editor = Formily::EditorConfig.new @paperclip = Formily::PaperclipConfig.new end |
Instance Method Details
#editor ⇒ Formily::EditorConfig
12 13 14 |
# File 'lib/formily/config.rb', line 12 def editor @editor end |
#paperclip ⇒ Formily::PaperclipConfig
17 18 19 |
# File 'lib/formily/config.rb', line 17 def paperclip @paperclip end |
#setup {|_self| ... } ⇒ Object
Set variable in do-end block
26 27 28 |
# File 'lib/formily/config.rb', line 26 def setup yield self end |