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.



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

#_hObject



10
11
12
# File 'lib/r_kit/decorator/base.rb', line 10

def _h
  @view_context
end