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.



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

#klassObject (readonly)

Returns the value of attribute klass.



199
200
201
# File 'lib/utils/irb.rb', line 199

def klass
  @klass
end