Module: Tabster::Configurable

Included in:
Tabster
Defined in:
lib/tabster/configurable.rb

Defined Under Namespace

Classes: Configuration

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject (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

Yields:



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_hashObject



64
65
66
# File 'lib/tabster/configurable.rb', line 64

def to_hash
  { :name => @@config.name, :css_template => @@config.css_template}
end