Class: Odania::Config::Style
- Inherits:
-
Object
- Object
- Odania::Config::Style
- Defined in:
- lib/odania/config/style.rb
Instance Attribute Summary collapse
-
#entry_point ⇒ Object
Returns the value of attribute entry_point.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #dump ⇒ Object
-
#initialize(name) ⇒ Style
constructor
A new instance of Style.
- #load(data, group_name) ⇒ Object
- #plugins(type, key) ⇒ Object
Constructor Details
#initialize(name) ⇒ Style
Returns a new instance of Style.
6 7 8 9 |
# File 'lib/odania/config/style.rb', line 6 def initialize(name) self.name = name reset end |
Instance Attribute Details
#entry_point ⇒ Object
Returns the value of attribute entry_point.
4 5 6 |
# File 'lib/odania/config/style.rb', line 4 def entry_point @entry_point end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/odania/config/style.rb', line 4 def name @name end |
Instance Method Details
#dump ⇒ Object
15 16 17 18 19 20 |
# File 'lib/odania/config/style.rb', line 15 def dump result = super result['entry_point'] = entry_point result end |
#load(data, group_name) ⇒ Object
22 23 24 25 26 |
# File 'lib/odania/config/style.rb', line 22 def load(data, group_name) reset super(data, group_name) self.entry_point = data['entry_point'] unless data['entry_point'].nil? end |
#plugins(type, key) ⇒ Object
11 12 13 |
# File 'lib/odania/config/style.rb', line 11 def plugins(type, key) @plugins[type][key] end |