Class: Curry::HoleArg

Inherits:
SpiceArg show all
Includes:
Singleton
Defined in:
lib/curry.rb

Overview

:nodoc: all

Instance Method Summary collapse

Methods inherited from SpiceArg

#inspect

Constructor Details

#initializeHoleArg

Returns a new instance of HoleArg.



83
# File 'lib/curry.rb', line 83

def initialize; super("HOLE"); end

Instance Method Details

#spice_arg(args_remain) ⇒ Object



84
85
86
87
88
89
90
91
# File 'lib/curry.rb', line 84

def spice_arg(args_remain)
  a = args_remain.shift
  if a == ANTIHOLE
    []
  else
    [a]
  end
end