Module: FlagpoleSitta::ConfigSitta::ClassMethods
- Defined in:
- lib/flagpole_sitta/config_sitta.rb
Instance Method Summary collapse
- #cache_sitta(options = {}) ⇒ Object
- #has_brackets_retrieval(options = {}) ⇒ Object
- #has_existence_hash(options = {}) ⇒ Object
- #route_id ⇒ Object
Instance Method Details
#cache_sitta(options = {}) ⇒ Object
25 26 27 28 |
# File 'lib/flagpole_sitta/config_sitta.rb', line 25 def cache_sitta = {} @_route_id = [:route_id] ? [: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 = {} @_safe_content = [:safe_content] ? [:safe_content] : @_safe_content @_value_field = [:value] ? [:value].to_s : @_value_field @_key_field = [:key] ? [:key].to_s : @_key_field @_default_value = [:default_value] ? [: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 = {} @_route_id ||= [:route_id] ? [:route_id].to_s : @_route_id include FlagpoleSitta::ExistenceHash end |
#route_id ⇒ Object
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 |