Module: Qreport::Initialization
- Included in:
- ReportRun
- Defined in:
- lib/qreport/initialization.rb
Instance Method Summary collapse
Instance Method Details
#initialize(opts = nil) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/qreport/initialization.rb', line 5 def initialize opts = nil opts ||= EMPTY_Hash initialize_before_opts if respond_to? :initialize_before_opts initialize_from_hash! opts initialize_after_opts if respond_to? :initialize_after_opts end |
#initialize_from_hash!(opts) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/qreport/initialization.rb', line 12 def initialize_from_hash! opts if opts opts.each do | k, v | send(:"#{k}=", v) end end self end |