Class: LedgerLite::Configuration
- Inherits:
-
Object
- Object
- LedgerLite::Configuration
- Defined in:
- lib/ledger-lite/base.rb
Constant Summary collapse
- COINBASE =
note: for now is an array (allow/ support multiple coinbases)
note: add a (†) coinbase marker
['Coinbase†']
Instance Attribute Summary collapse
-
#coinbase ⇒ Object
use a different name e.g.
Instance Method Summary collapse
- #coinbase?(addr) ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
34 35 36 |
# File 'lib/ledger-lite/base.rb', line 34 def initialize @coinbase = COINBASE end |
Instance Attribute Details
#coinbase ⇒ Object
use a different name e.g.
- mint (like royal mint or federal coin mint?) or
- base
- magic (for creating coins out-of-nothing?) or
- network or ??) - why? why not?
28 29 30 |
# File 'lib/ledger-lite/base.rb', line 28 def coinbase @coinbase end |
Instance Method Details
#coinbase?(addr) ⇒ Boolean
38 39 40 |
# File 'lib/ledger-lite/base.rb', line 38 def coinbase?( addr ) @coinbase.include?( addr ) end |