Class: Mozaic::Configuration
- Inherits:
-
Object
- Object
- Mozaic::Configuration
- Defined in:
- lib/mozaic/configuration.rb
Instance Attribute Summary collapse
-
#es6 ⇒ Object
Returns the value of attribute es6.
-
#javascripts ⇒ Object
Returns the value of attribute javascripts.
-
#stylesheets ⇒ Object
Returns the value of attribute stylesheets.
Instance Method Summary collapse
- #define_component(name, options = {}) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
18 19 20 21 22 |
# File 'lib/mozaic/configuration.rb', line 18 def initialize @es6 = true @javascripts = 'app/javascript/javascripts' @stylesheets = 'app/javascript/stylesheets' end |
Instance Attribute Details
#es6 ⇒ Object
Returns the value of attribute es6.
14 15 16 |
# File 'lib/mozaic/configuration.rb', line 14 def es6 @es6 end |
#javascripts ⇒ Object
Returns the value of attribute javascripts.
15 16 17 |
# File 'lib/mozaic/configuration.rb', line 15 def javascripts @javascripts end |
#stylesheets ⇒ Object
Returns the value of attribute stylesheets.
16 17 18 |
# File 'lib/mozaic/configuration.rb', line 16 def stylesheets @stylesheets end |
Instance Method Details
#define_component(name, options = {}) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/mozaic/configuration.rb', line 24 def define_component name, = {} if block_given? Mozaic::Component.new name.to_sym, , &Proc.new else Mozaic::Component.new name.to_sym, end end |