Module: Etheruby::Contract
- Defined in:
- lib/etheruby/contract.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
28 29 30 31 32 |
# File 'lib/etheruby/contract.rb', line 28 def self.included(base) base.include(::Singleton) base.include(Etheruby::ContractBase) base.extend(ClassMethods) end |
Instance Method Details
#initialize ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/etheruby/contract.rb', line 11 def initialize @c_methods = {} @logger = ::Logger.new(STDOUT) @logger.level = if ENV.has_key? 'ETHERUBY_DEBUG' ::Logger::DEBUG else ::Logger::WARN end @logger.progname = "Etheruby Contract '#{self.class.name}'" end |