Class: Structish::Config
- Inherits:
-
Object
- Object
- Structish::Config
- Defined in:
- lib/structish/config.rb
Class Method Summary collapse
- .config ⇒ Object
- .config=(config_hash) ⇒ Object
- .show_full_trace=(show_full) ⇒ Object
- .show_full_trace? ⇒ Boolean
Class Method Details
.config ⇒ Object
4 5 6 |
# File 'lib/structish/config.rb', line 4 def self.config @config ||= {}.with_indifferent_access end |
.config=(config_hash) ⇒ Object
8 9 10 |
# File 'lib/structish/config.rb', line 8 def self.config=(config_hash) @config = config_hash.with_indifferent_access end |
.show_full_trace=(show_full) ⇒ Object
12 13 14 |
# File 'lib/structish/config.rb', line 12 def self.show_full_trace=(show_full) config["show_full_trace"] = show_full end |
.show_full_trace? ⇒ Boolean
16 17 18 |
# File 'lib/structish/config.rb', line 16 def self.show_full_trace? config["show_full_trace"] end |