Sha256: b81120368b13096468236ad8c696eb079462c5b13431fd671603e5391f392daf
Contents?: true
Size: 243 Bytes
Versions: 4
Compression:
Stored size: 243 Bytes
Contents
module Elevate class Callback def initialize(context, operation, block) @context = context @operation = operation @block = block end def call @context.instance_exec(@operation, &@block) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
elevate-0.3.3 | lib/elevate/callback.rb |
elevate-0.3.2 | lib/elevate/callback.rb |
elevate-0.3.1 | lib/elevate/callback.rb |
elevate-0.3 | lib/elevate/callback.rb |