Class: Gem::SafeMarshal::Elements::Bignum

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

Overview

rubocop:disable Lint/UnifiedInteger

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sign, data) ⇒ Bignum

Returns a new instance of Bignum.



130
131
132
133
# File 'lib/rubygems/safe_marshal/elements.rb', line 130

def initialize(sign, data)
  @sign = sign
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



134
135
136
# File 'lib/rubygems/safe_marshal/elements.rb', line 134

def data
  @data
end

#signObject (readonly)

Returns the value of attribute sign.



134
135
136
# File 'lib/rubygems/safe_marshal/elements.rb', line 134

def sign
  @sign
end