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.



175
176
177
178
179
# File 'lib/utils/irb.rb', line 175

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

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



181
182
183
# File 'lib/utils/irb.rb', line 181

def klass
  @klass
end