Module: Redistat::Options
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 |
# File 'lib/redistat/mixins/options.rb', line 4 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#default_options ⇒ Object
28 29 30 |
# File 'lib/redistat/mixins/options.rb', line 28 def {} end |
#options ⇒ Object
32 33 34 |
# File 'lib/redistat/mixins/options.rb', line 32 def @options ||= {} end |
#parse_options(opts) ⇒ Object
22 23 24 25 26 |
# File 'lib/redistat/mixins/options.rb', line 22 def (opts) opts ||= {} @raw_options = opts @options = .merge(opts.reject { |k,v| v.nil? }) end |
#raw_options ⇒ Object
36 37 38 |
# File 'lib/redistat/mixins/options.rb', line 36 def @raw_options ||= {} end |