module DCI::Context

Public Class Methods

perform(*args, &block) click to toggle source
# File lib/dci/context.rb, line 9
def self.perform(*args, &block)
  if block_given?
    new.perform(*args, &block)
  else
    new.perform(*args)
  end
end

Public Instance Methods

characterize(*args) { || ... } click to toggle source
# File lib/dci/context.rb, line 18
def characterize(*args)
  yield
  args.each do |item|
    item.uncast unless item.nil?
  end
end