Class: C3DCI::DCI::Type::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/c3-dci/dci/type.rb

Class Method Summary collapse

Class Method Details

.call(*args) ⇒ Object

helper method to instantiate and call ‘call’ a context in one step the ‘call’ instance method MUST BE implemented!



13
14
15
16
17
18
19
# File 'lib/c3-dci/dci/type.rb', line 13

def self.call *args
  if args.empty?
    new.call
  else
    new(*args).call
  end
end