Class: Curry::HoleArg
- Includes:
- Singleton
- Defined in:
- lib/curry.rb
Overview
:nodoc: all
Instance Method Summary collapse
-
#initialize ⇒ HoleArg
constructor
A new instance of HoleArg.
- #spice_arg(args_remain) ⇒ Object
Methods inherited from SpiceArg
Constructor Details
#initialize ⇒ HoleArg
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 |