Class: Runtime

Inherits:
Object
  • Object
show all
Defined in:
lib/rubysol/runtime.rb

Overview

todo/ find a better name - why? why not?

change to Blockchain/Chain/Node/Client/Runner/Ctx/Context or ???

Defined Under Namespace

Classes: Block, Message, Tx

Class Method Summary collapse

Class Method Details

.blockObject



69
# File 'lib/rubysol/runtime.rb', line 69

def self.block() @block  ||= Block.new; end

.current_transactionObject Also known as: current_tx



75
# File 'lib/rubysol/runtime.rb', line 75

def self.current_transaction() @tx ||= Tx.new; end

.msgObject



68
# File 'lib/rubysol/runtime.rb', line 68

def self.msg()   @msg    ||= Message.new; end

.start_transactionObject Also known as: start_tx

use begin_transaction or

new_transaction or  __ - why? why not?


74
# File 'lib/rubysol/runtime.rb', line 74

def self.start_transaction()   @tx = Tx.new; end