Class: Stark::Parser::AST::Function

Inherits:
Node
  • Object
show all
Defined in:
lib/stark/ast.rb,
lib/stark/raw_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options)
  @name = name
  @return_type = return_type
  @arguments = arguments
  @throws = throws
  @options = options
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



443
444
445
# File 'lib/stark/raw_parser.rb', line 443

def arguments
  @arguments
end

#nameObject (readonly)

Returns the value of attribute name.



441
442
443
# File 'lib/stark/raw_parser.rb', line 441

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



445
446
447
# File 'lib/stark/raw_parser.rb', line 445

def options
  @options
end

#return_typeObject (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

#throwsObject (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