Class: Stark::Parser::AST::Service
- Defined in:
- lib/stark/ast.rb,
lib/stark/raw_parser.rb
Instance Attribute Summary collapse
-
#functions ⇒ Object
readonly
Returns the value of attribute functions.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #accept(obj) ⇒ Object
-
#initialize(name, functions) ⇒ Service
constructor
A new instance of Service.
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
#functions ⇒ Object (readonly)
Returns the value of attribute functions.
478 479 480 |
# File 'lib/stark/raw_parser.rb', line 478 def functions @functions end |
#name ⇒ Object (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 |