Method: Cuprum::Currying::CurriedCommand#initialize

Defined in:
lib/cuprum/currying/curried_command.rb

#initialize(command:, arguments: [], block: nil, keywords: {}) { ... } ⇒ CurriedCommand

Returns a new instance of CurriedCommand.

Parameters:

  • (defaults to: [])

    The arguments to pass to the curried command.

  • The original command to curry.

  • (defaults to: {})

    The keywords to pass to the curried command.

Yields:

  • A block to pass to the curried command.



60
61
62
63
64
65
66
67
# File 'lib/cuprum/currying/curried_command.rb', line 60

def initialize(command:, arguments: [], block: nil, keywords: {})
  super()

  @arguments = arguments
  @block     = block
  @command   = command
  @keywords  = keywords
end