Sha256: 73ec704578bb7ccb74970da3523f564dae73a7bf9f0a2baa3823d35fd8ef4108
Contents?: true
Size: 275 Bytes
Versions: 1
Compression:
Stored size: 275 Bytes
Contents
module Elevate class TaskContext def initialize(args, &block) metaclass = class << self; self; end metaclass.send(:define_method, :execute, &block) args.each do |key, value| instance_variable_set("@#{key}", value) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
elevate-0.5.0 | lib/elevate/task_context.rb |