class IcAgent::Ast::Nodes::IcServiceItem

Represents an IC service item node in the abstract syntax tree, a subclass of NamedNode.

Public Instance Methods

title() click to toggle source

The title of the IC service item node.

# File lib/ic_agent/ast/nodes/named_nodes.rb, line 377
def title
  :ic_service_item
end
to_obj() click to toggle source

Converts the IC service item node to a hash representation.

# File lib/ic_agent/ast/nodes/named_nodes.rb, line 387
def to_obj
  obj = {}
  elements.each do |element|
    obj[element.title.to_s] = element.text_value.gsub("\n", '')
  end
  obj
end
to_s() click to toggle source

Converts the IC service item node to a string representation.

# File lib/ic_agent/ast/nodes/named_nodes.rb, line 382
def to_s
  elements_to_s
end