Module: FlagpoleSitta::ConfigSitta::ClassMethods

Defined in:
lib/flagpole_sitta/config_sitta.rb

Instance Method Summary collapse

Instance Method Details

#cache_sitta(options = {}) ⇒ Object



25
26
27
28
# File 'lib/flagpole_sitta/config_sitta.rb', line 25

def cache_sitta options = {}
  @_route_id = options[:route_id] ? options[:route_id].to_s : @_route_id
  include FlagpoleSitta::CacheSitta
end

#has_brackets_retrieval(options = {}) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/flagpole_sitta/config_sitta.rb', line 17

def has_brackets_retrieval options = {}
  @_safe_content = options[:safe_content] ? options[:safe_content] : @_safe_content
  @_value_field = options[:value] ? options[:value].to_s : @_value_field
  @_key_field = options[:key] ? options[:key].to_s : @_key_field
  @_default_value = options[:default_value] ? options[:default_value] : @_default_value
  include FlagpoleSitta::BracketRetrieval
end

#has_existence_hash(options = {}) ⇒ Object



12
13
14
15
# File 'lib/flagpole_sitta/config_sitta.rb', line 12

def has_existence_hash options = {}
  @_route_id ||= options[:route_id] ? options[:route_id].to_s : @_route_id
  include FlagpoleSitta::ExistenceHash
end

#route_idObject



8
9
10
# File 'lib/flagpole_sitta/config_sitta.rb', line 8

def route_id
  @_route_id || (self.superclass.respond_to?(:route_id) ? self.superclass.route_id : nil)  || "id"
end