lib/tex/context/contextsetup.rb
# Return the number of arguments the command takes. If with_optional is false, 
# return only the number of mandatory arguments.
Return the number of arguments the command takes. If with_optional is false,
return only the number of mandatory arguments.
Return the number of arguments the command takes . If with_optional is false return only the number of mandatory arguments .
def no_of_arguments(with_optional=true)
      tmp=@arguments.reject do |arg|
        unless arg.optional?
          true unless with_optional
        else
          false
        end
      end
      tmp.size
    end
def no_of_arguments ( with_optional = true ) tmp = @arguments . reject do | arg | unless arg . optional? true unless with_optional else false end end tmp . size end
Return the number of arguments the command takes.
Return the number of arguments the command takes .
with_optional
<not_specific>