Class: Roglew::BaseContext
- Inherits:
-
Module
- Object
- Module
- Roglew::BaseContext
- Defined in:
- lib/roglew/contexts/base.rb
Instance Method Summary collapse
- #included(c) ⇒ Object
-
#initialize(obj_type) ⇒ BaseContext
constructor
A new instance of BaseContext.
Constructor Details
#initialize(obj_type) ⇒ BaseContext
Returns a new instance of BaseContext.
54 55 56 |
# File 'lib/roglew/contexts/base.rb', line 54 def initialize(obj_type) @obj_type = obj_type end |
Instance Method Details
#included(c) ⇒ Object
58 59 60 61 62 |
# File 'lib/roglew/contexts/base.rb', line 58 def included(c) super c.send(:include, BaseContextModule) c.send(:alias_method, @obj_type, :obj) end |