Class: RKit::Decorator::Base

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

Instance Method Summary collapse

Constructor Details

#initialize(base, view_context) ⇒ Base

Returns a new instance of Base.



2
3
4
5
6
# File 'lib/r_kit/decorator/base.rb', line 2

def initialize base, view_context
  @view_context = view_context
  
  super(base)
end

Instance Method Details

#===(object) ⇒ Object



12
13
14
# File 'lib/r_kit/decorator/base.rb', line 12

def === object
  self == object || __getobj__ == object
end

#_hObject



8
9
10
# File 'lib/r_kit/decorator/base.rb', line 8

def _h
  @view_context
end