Class: Ethmo::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/ethmo/config.rb

Overview

:nodoc:

Constant Summary collapse

WEI =

1 ETH = 10^18 Wei

10**18

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#socketObject

Returns the value of attribute socket.



21
22
23
# File 'lib/ethmo/config.rb', line 21

def socket
  @socket
end

Class Method Details

.method_missing(name, *args, &block) ⇒ Object



15
16
17
18
# File 'lib/ethmo/config.rb', line 15

def method_missing(name, *args, &block)
  return super unless instance.respond_to?(name)
  instance.public_send(name, *args, &block)
end

.respond_to_missing?(*args) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/ethmo/config.rb', line 11

def respond_to_missing?(*args)
  instance.respond_to_missing?(*args)
end