Class: Stark::Parser::AST::Service

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, functions) ⇒ Service

Returns a new instance of Service.



473
474
475
476
# File 'lib/stark/raw_parser.rb', line 473

def initialize(name, functions)
  @name = name
  @functions = functions
end

Instance Attribute Details

#functionsObject (readonly)

Returns the value of attribute functions.



478
479
480
# File 'lib/stark/raw_parser.rb', line 478

def functions
  @functions
end

#nameObject (readonly)

Returns the value of attribute name.



477
478
479
# File 'lib/stark/raw_parser.rb', line 477

def name
  @name
end

Instance Method Details

#accept(obj) ⇒ Object



36
37
38
# File 'lib/stark/ast.rb', line 36

def accept(obj)
  obj.process_service self
end