Module: Sevgi::Graphics::Mixtures::Call

Defined in:
lib/sevgi/graphics/mixtures/call.rb

Overview

DSL helpers for invoking callable drawing modules.

Instance Method Summary collapse

Instance Method Details

#Call(mod, *args, **kwargs) ⇒ Object?

Runs a callable drawing module in the current element context.

Parameters:

  • mod (Module)

    callable module

  • args (Array<Object>)

    callable arguments

  • kwargs (Hash)

    callable keyword arguments

Returns:

  • (Object, nil)

    last callable return value

Raises:

  • (Sevgi::ArgumentError)

    when mod is not a plain module



81
82
83
# File 'lib/sevgi/graphics/mixtures/call.rb', line 81

def Call(mod, ...)
  Graphics::Module.call(mod, self, ...)
end