Class: Tap::Generator::Arguments

Inherits:
Lazydoc::Arguments
  • Object
show all
Defined in:
lib/tap/generator/arguments.rb

Overview

A special type of Lazydoc::Arguments that shifts off the standard ‘m’ argument on generator manifest methods, to properly reflect how may arguments the generator should receive.

Instance Method Summary collapse

Instance Method Details

#arguments(shift_manifest_arg = true) ⇒ Object



8
9
10
# File 'lib/tap/generator/arguments.rb', line 8

def arguments(shift_manifest_arg=true)
  shift_manifest_arg ? @arguments[1..-1] : @arguments
end