Class: Gem::SafeMarshal::Elements::Integer

Inherits:
Element
  • Object
show all
Defined in:
lib/rubygems/safe_marshal/elements.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(int) ⇒ Integer

Returns a new instance of Integer.



68
69
70
# File 'lib/rubygems/safe_marshal/elements.rb', line 68

def initialize(int)
  @int = int
end

Instance Attribute Details

#intObject (readonly)

Returns the value of attribute int.



72
73
74
# File 'lib/rubygems/safe_marshal/elements.rb', line 72

def int
  @int
end