Class: Rubyang::Xpath::FunctionCall

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyang/xpath.rb

Constant Summary collapse

CURRENT =
:current
LAST =
:last
POSITION =
'position'
COUNT =
'count'
ID =
'id'
LOCAL_NAME =
'local-name'
NAMESPACE_URI =
'namespace-uri'
NAME =
'name'
STRING =
'string'
CONCAT =
'concat'
STARTS_WITH =
'starts-with'
CONTAINS =
'contains'
SUBSTRING_BEFORE =
'substring-before'
SUBSTRING_AFTER =
'substring-after'
SUBSTRING =
'substring'
STRING_LENGTH =
'string-length'
NORMALIZE_SPACE =
'normalize-space'
TRANSLATE =
'translate'
BOOLEAN =
'boolean'
NOT =
'not'
TRUE =
'true'
FALSE =
'false'
LANG =
'lang'
NUMBER =
'number'
SUM =
'sum'
FLOOR =
'floor'
CEILING =
'ceiling'
ROUND =
'round'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, args = []) ⇒ FunctionCall

Returns a new instance of FunctionCall.



457
458
459
460
# File 'lib/rubyang/xpath.rb', line 457

def initialize name, args=[]
  @name = name
  @args = args
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



456
457
458
# File 'lib/rubyang/xpath.rb', line 456

def args
  @args
end

#nameObject (readonly)

Returns the value of attribute name.



456
457
458
# File 'lib/rubyang/xpath.rb', line 456

def name
  @name
end