Class: Stark::Parser::AST::Function
- Defined in:
- lib/stark/ast.rb,
lib/stark/raw_parser.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#return_type ⇒ Object
readonly
Returns the value of attribute return_type.
-
#throws ⇒ Object
readonly
Returns the value of attribute throws.
Instance Method Summary collapse
- #accept(obj) ⇒ Object
-
#initialize(name, return_type, arguments, throws, options) ⇒ Function
constructor
A new instance of Function.
Constructor Details
#initialize(name, return_type, arguments, throws, options) ⇒ Function
Returns a new instance of Function.
434 435 436 437 438 439 440 |
# File 'lib/stark/raw_parser.rb', line 434 def initialize(name, return_type, arguments, throws, ) @name = name @return_type = return_type @arguments = arguments @throws = throws @options = end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
443 444 445 |
# File 'lib/stark/raw_parser.rb', line 443 def arguments @arguments end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
441 442 443 |
# File 'lib/stark/raw_parser.rb', line 441 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
445 446 447 |
# File 'lib/stark/raw_parser.rb', line 445 def @options end |
#return_type ⇒ Object (readonly)
Returns the value of attribute return_type.
442 443 444 |
# File 'lib/stark/raw_parser.rb', line 442 def return_type @return_type end |
#throws ⇒ Object (readonly)
Returns the value of attribute throws.
444 445 446 |
# File 'lib/stark/raw_parser.rb', line 444 def throws @throws end |
Instance Method Details
#accept(obj) ⇒ Object
30 31 32 |
# File 'lib/stark/ast.rb', line 30 def accept(obj) obj.process_function self end |