Class: Lisp::Format::Parameters::ArgumentCount

Inherits:
Parameter show all
Defined in:
lib/carat/lisp-format.rb

Overview

Represents the # parameter, which retrieves the number of arguments left to process.

Instance Attribute Summary

Attributes inherited from Parameter

#pos

Instance Method Summary collapse

Methods inherited from Parameter

#initialize

Constructor Details

This class inherits a constructor from Lisp::Format::Parameters::Parameter

Instance Method Details

#value(state, default) ⇒ Object

Retrieve this parameters value by getting the number of arguments left to process.



474
475
476
# File 'lib/carat/lisp-format.rb', line 474

def value(state, default)
  state.args_left
end