class BELParser::Parsers::AST::Url

AST node representing a URL.

Public Class Methods

new(children = [], properties = {}) click to toggle source

New Url AST node.

@see Node#initialize Node class for basic properties

Calls superclass method BELParser::Parsers::AST::Node::new
# File lib/bel_parser/parsers/ast/node.rb, line 398
def initialize(children = [], properties = {})
  super(Url.ast_type, children, properties)
end

Public Instance Methods

string() click to toggle source

Get the url's string.

# File lib/bel_parser/parsers/ast/node.rb, line 403
def string
  children[0]
end