Class: ReportPrint::ScopedOptions
- Defined in:
- lib/report_print/scoped_options.rb
Instance Method Summary collapse
-
#initialize(global_options) ⇒ ScopedOptions
constructor
A new instance of ScopedOptions.
- #options_for(klass) ⇒ Object
Constructor Details
#initialize(global_options) ⇒ ScopedOptions
Returns a new instance of ScopedOptions.
3 4 5 6 7 8 9 |
# File 'lib/report_print/scoped_options.rb', line 3 def initialize() @global_options = @cache = { Object => Object., BasicObject => {} } end |
Instance Method Details
#options_for(klass) ⇒ Object
11 12 13 |
# File 'lib/report_print/scoped_options.rb', line 11 def (klass) @global_options.merge((klass).compact) end |