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.



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

def domain
  @domain
end

#domain_nameObject

Returns the value of attribute domain_name.



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

def domain_name
  @domain_name
end

#siteObject

Returns the value of attribute site.



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

def site
  @site
end