class Centralbank::Service

Constants

PUBLIC_FOLDER
VIEWS_FOLDER

Public Class Methods

banner() click to toggle source

Private Instance Methods

node() click to toggle source

return network node (built and configured on first use)

fix: do NOT use @@ - use a class level method or something
# File lib/centralbank/service.rb, line 95
def node
  if defined?( @@node )
    @@node
  else
    puts "[debug] centralbank - build (network) node (address: #{Centralbank.config.address})"
    @@node = Node.new( address: Centralbank.config.address )
    @@node
  end
  ####
  ## check why this is a syntax error:
  ## @node ||= do
  ##   puts "[debug] centralbank - build (network) node (address: #{Centralbank.config.address})"
  ##   @node = Node.new( address: Centralbank.config.address )
  ## end
end