Class: RubyReport::Decorator

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/ruby_report/decorator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#scopeObject (readonly)

Returns the value of attribute scope.



5
6
7
# File 'lib/ruby_report/decorator.rb', line 5

def scope
  @scope
end