Class: RKit::Decorator::Base
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- RKit::Decorator::Base
- Defined in:
- lib/r_kit/decorator/base.rb
Instance Method Summary collapse
- #===(object) ⇒ Object
- #_h ⇒ Object
-
#initialize(base, view_context) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(base, view_context) ⇒ Base
Returns a new instance of Base.
4 5 6 7 8 |
# File 'lib/r_kit/decorator/base.rb', line 4 def initialize base, view_context @view_context = view_context super(base) end |
Instance Method Details
#===(object) ⇒ Object
14 15 16 |
# File 'lib/r_kit/decorator/base.rb', line 14 def === object self == object || __getobj__ == object end |
#_h ⇒ Object
10 11 12 |
# File 'lib/r_kit/decorator/base.rb', line 10 def _h @view_context end |