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.
165 166 167 168 169 |
# File 'lib/bitcoin_addrgen/addrgen.rb', line 165 def initialize(prime, a, b) @prime = prime @a = a @b = b end |
Instance Attribute Details
#a ⇒ Object (readonly)
Returns the value of attribute a.
163 164 165 |
# File 'lib/bitcoin_addrgen/addrgen.rb', line 163 def a @a end |
#b ⇒ Object (readonly)
Returns the value of attribute b.
163 164 165 |
# File 'lib/bitcoin_addrgen/addrgen.rb', line 163 def b @b end |
#prime ⇒ Object (readonly)
Returns the value of attribute prime.
163 164 165 |
# File 'lib/bitcoin_addrgen/addrgen.rb', line 163 def prime @prime end |