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.



173
174
175
176
177
# File 'lib/utils/irb.rb', line 173

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

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



179
180
181
# File 'lib/utils/irb.rb', line 179

def klass
  @klass
end