Module: DataImp::Options
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(mod) ⇒ Object
3 4 5 |
# File 'lib/data_imp/options.rb', line 3 def self.included mod mod.extend ClassMethods end |
Instance Method Details
#initialize(hash = {}) ⇒ Object
7 8 9 |
# File 'lib/data_imp/options.rb', line 7 def initialize hash={} self. = hash end |
#options ⇒ Object
11 12 13 |
# File 'lib/data_imp/options.rb', line 11 def @options ||= self.class..compact end |
#options=(hash) ⇒ Object
15 16 17 |
# File 'lib/data_imp/options.rb', line 15 def hash @options = .merge(hash) end |