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.



205
206
207
208
209
# File 'lib/utils/irb.rb', line 205

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

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



211
212
213
# File 'lib/utils/irb.rb', line 211

def klass
  @klass
end