Module: Tabster::Configurable
- Included in:
- Tabster
- Defined in:
- lib/tabster/configurable.rb
Defined Under Namespace
Classes: Configuration
Class Attribute Summary collapse
-
.config ⇒ Object
readonly
Returns the value of attribute config.
Class Method Summary collapse
Class Attribute Details
.config ⇒ Object (readonly)
Returns the value of attribute config.
52 53 54 |
# File 'lib/tabster/configurable.rb', line 52 def config @config end |
Class Method Details
.configure {|config| ... } ⇒ Object
58 59 60 61 62 |
# File 'lib/tabster/configurable.rb', line 58 def configure(&block) raise "configure must be sent a block" unless block_given? yield config config.validate! end |
.to_hash ⇒ Object
64 65 66 |
# File 'lib/tabster/configurable.rb', line 64 def to_hash { :name => @@config.name, :css_template => @@config.css_template} end |