Class: Canfig::OpenConfig
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from Config
#[], #[]=, #changed, #changed?, #clear, #configure, #configure_with_args, #configure_with_block, #configure_with_file, #disable_state_saves!, #enable_state_saves!, #env, #get, #method_missing, #save_state!, #save_state?, #state, #thread_configs, #to_h
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Canfig::Config
Instance Method Details
#allowed?(opt) ⇒ Boolean
8 9 10 |
# File 'lib/canfig/open_config.rb', line 8 def allowed?(opt) true end |
#set(key, val) ⇒ Object
3 4 5 6 |
# File 'lib/canfig/open_config.rb', line 3 def set(key, val) @allowed << key unless @allowed.include?(key) super(key, val) end |