Class: RubyReport::Decorator
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- RubyReport::Decorator
- Defined in:
- lib/ruby_report/decorator.rb
Instance Attribute Summary collapse
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(obj, scope = {}) ⇒ Decorator
constructor
A new instance of Decorator.
Constructor Details
#initialize(obj, scope = {}) ⇒ Decorator
Returns a new instance of Decorator.
7 8 9 10 |
# File 'lib/ruby_report/decorator.rb', line 7 def initialize(obj, scope = {}) super(obj) @scope = scope end |
Instance Attribute Details
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
5 6 7 |
# File 'lib/ruby_report/decorator.rb', line 5 def scope @scope end |