Class: BeanSprout::PackagePrivate::PublicInterfaceBase
- Inherits:
-
ForwardableDelegate
- Object
- ForwardableDelegate
- BeanSprout::PackagePrivate::PublicInterfaceBase
- Defined in:
- lib/bean_sprout/package_private.rb
Overview
A base class for delegator classes.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#other_data ⇒ Object
Returns the value of attribute other_data.
Instance Method Summary collapse
-
#initialize(obj, other_data = nil) ⇒ PublicInterfaceBase
constructor
A new instance of PublicInterfaceBase.
Methods inherited from ForwardableDelegate
def_default_delegators, def_private_default_delegators
Constructor Details
#initialize(obj, other_data = nil) ⇒ PublicInterfaceBase
Returns a new instance of PublicInterfaceBase.
32 33 34 35 36 |
# File 'lib/bean_sprout/package_private.rb', line 32 def initialize obj, other_data = nil super(obj) obj.bind_public_interface self @other_data = other_data end |
Instance Attribute Details
#other_data ⇒ Object
Returns the value of attribute other_data.
38 39 40 |
# File 'lib/bean_sprout/package_private.rb', line 38 def other_data @other_data end |