Class: Structish::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/structish/config.rb

Class Method Summary collapse

Class Method Details

.configObject



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

Returns:



16
17
18
# File 'lib/structish/config.rb', line 16

def self.show_full_trace?
  config["show_full_trace"]
end