Class: Boxspring::Theme

Inherits:
Base
  • Object
show all
Defined in:
lib/boxspring/theme.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Boxspring::Base

Instance Method Details

#environments(reload = false) ⇒ Object



12
13
14
15
16
17
18
19
20
# File 'lib/boxspring/theme.rb', line 12

def environments( reload = false )
  @_environments ||= begin
    self.attributes.include?( :environments ) ? 
      self.attributes[ :environments ].map do | environment |
        ThemeEnvironment.new( environment ) 
      end :
      nil
  end
end