Class: Gem::SafeMarshal::Elements::Bignum
- Defined in:
- lib/rubygems/safe_marshal/elements.rb
Overview
rubocop:disable Lint/UnifiedInteger
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#sign ⇒ Object
readonly
Returns the value of attribute sign.
Instance Method Summary collapse
-
#initialize(sign, data) ⇒ Bignum
constructor
A new instance of Bignum.
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
134 135 136 |
# File 'lib/rubygems/safe_marshal/elements.rb', line 134 def data @data end |
#sign ⇒ Object (readonly)
Returns the value of attribute sign.
134 135 136 |
# File 'lib/rubygems/safe_marshal/elements.rb', line 134 def sign @sign end |