Method: Preprocessor::Parameters#with_ellipses
- Defined in:
- lib/caphir/define.rb
#with_ellipses(arg = nil) ⇒ Object
365 366 367 368 369 370 371 372 373 374 375 |
# File 'lib/caphir/define.rb', line 365 def with_ellipses(arg=nil) raise "already has ellipses: #{self}" if ellipses? if arg and arg != ELLIPSIS self << arg @ellipses = arg + ELLIPSIS # if arg is 'i' then 'i...' else self << VA_ARGS @ellipses = ELLIPSIS end self end |