Class: Utils::IRB::Shell::ConstantWrapper
- Inherits:
-
WrapperBase
- Object
- WrapperBase
- Utils::IRB::Shell::ConstantWrapper
- Defined in:
- lib/utils/irb.rb
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Attributes inherited from WrapperBase
Instance Method Summary collapse
-
#initialize(obj, name) ⇒ ConstantWrapper
constructor
A new instance of ConstantWrapper.
Methods inherited from WrapperBase
Constructor Details
#initialize(obj, name) ⇒ ConstantWrapper
Returns a new instance of ConstantWrapper.
193 194 195 196 197 |
# File 'lib/utils/irb.rb', line 193 def initialize(obj, name) super(name) @klass = obj.class @description = "#@name:#@klass" end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
199 200 201 |
# File 'lib/utils/irb.rb', line 199 def klass @klass end |