Class: SiteFramework::CurrentState

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/site_framework/current_state.rb

Overview

This singleton class act as an temp storage for the current site and domain

Instance Attribute Summary collapse

Instance Attribute Details

#domainObject

Returns the value of attribute domain.



6
7
8
# File 'lib/site_framework/current_state.rb', line 6

def domain
  @domain
end

#domain_nameObject

Returns the value of attribute domain_name.



6
7
8
# File 'lib/site_framework/current_state.rb', line 6

def domain_name
  @domain_name
end

#siteObject

Returns the value of attribute site.



6
7
8
# File 'lib/site_framework/current_state.rb', line 6

def site
  @site
end