Sha256: ed004cb2a533166824d34e086bc8fd32471e1a597dac770a46f81a807c185287
Contents?: true
Size: 676 Bytes
Versions: 1
Compression:
Stored size: 676 Bytes
Contents
module ATP module FlowAPI def atp=(atp) @atp = atp end def atp @atp end ([:test, :bin, :pass, :continue, :cz, :log, :sub_test, :volatile, :set_flag, :enable, :disable, :render, :context_changed?] + ATP::Flow::CONDITION_KEYS.keys).each do |method| define_method method do |*args, &block| options = args.pop if args.last.is_a?(Hash) options ||= {} add_meta!(options) if respond_to?(:add_meta!, true) add_description!(options) if respond_to?(:add_description!, true) args << options atp.send(method, *args, &block) end end alias_method :logprint, :log end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
atp-1.0.0 | lib/atp/flow_api.rb |