Class: BitcoinAddrgen::Curve
- Inherits:
-
Object
- Object
- BitcoinAddrgen::Curve
- Defined in:
- lib/bitcoin_addrgen/addrgen.rb
Instance Attribute Summary collapse
-
#a ⇒ Object
readonly
Returns the value of attribute a.
-
#b ⇒ Object
readonly
Returns the value of attribute b.
-
#prime ⇒ Object
readonly
Returns the value of attribute prime.
Class Method Summary collapse
Instance Method Summary collapse
- #contains(x, y) ⇒ Object
-
#initialize(prime, a, b) ⇒ Curve
constructor
A new instance of Curve.
Constructor Details
#initialize(prime, a, b) ⇒ Curve
Returns a new instance of Curve.
140 141 142 143 144 |
# File 'lib/bitcoin_addrgen/addrgen.rb', line 140 def initialize(prime, a, b) @prime = prime @a = a @b = b end |
Instance Attribute Details
#a ⇒ Object (readonly)
Returns the value of attribute a.
138 139 140 |
# File 'lib/bitcoin_addrgen/addrgen.rb', line 138 def a @a end |
#b ⇒ Object (readonly)
Returns the value of attribute b.
138 139 140 |
# File 'lib/bitcoin_addrgen/addrgen.rb', line 138 def b @b end |
#prime ⇒ Object (readonly)
Returns the value of attribute prime.
138 139 140 |
# File 'lib/bitcoin_addrgen/addrgen.rb', line 138 def prime @prime end |