Class: Boxspring::ThemeEnvironment

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

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Boxspring::Base

Instance Method Details

#user_agentObject



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

def user_agent
  @_user_agent ||= begin
    self.attributes.include?( :user_agent ) ? 
      UserAgent.new( self.attributes[ :user_agent ] ) :
      nil
  end
end