class Ethereum::VM::State

Attributes

gas[RW]
memory[RW]
pc[RW]
stack[RW]

Public Class Methods

new(**kwargs) click to toggle source
# File lib/ethereum/vm/state.rb, line 8
def initialize(**kwargs)
  @memory = []
  @stack = []
  @pc = 0
  @gas = 0

  kwargs.each do |k,v|
    class <<self
      self
    end.class_eval("attr_accessor :#{k}")
    send :"#{k}=", v
  end
end