Sha256: 93b14711f6eec9607c88f69d3d7da433275cfd0c4af51bd19e2289b99487d0b1
Contents?: true
Size: 473 Bytes
Versions: 1
Compression:
Stored size: 473 Bytes
Contents
module Amoeba module ClassMethods def amoeba(&block) @config_block ||= block if block_given? @config ||= Amoeba::Config.new(self) @config.instance_eval(&block) if block_given? @config end def fresh_amoeba(&block) @config_block = block if block_given? @config = Amoeba::Config.new(self) @config.instance_eval(&block) if block_given? @config end def amoeba_block @config_block end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amoeba-3.0.0 | lib/amoeba/class_methods.rb |