Class: Utils::IRB::Shell::ConstantWrapper

Inherits:
WrapperBase show all
Defined in:
lib/utils/irb.rb

Instance Attribute Summary collapse

Attributes inherited from WrapperBase

#description, #name

Instance Method Summary collapse

Methods inherited from WrapperBase

#<=>, #==, #hash

Constructor Details

#initialize(obj, name) ⇒ ConstantWrapper

Returns a new instance of ConstantWrapper.



213
214
215
216
217
# File 'lib/utils/irb.rb', line 213

def initialize(obj, name)
  super(name)
  @klass = obj.class
  @description = "#@name:#@klass"
end

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



219
220
221
# File 'lib/utils/irb.rb', line 219

def klass
  @klass
end