Class: Pump::Xml::Value

Inherits:
Node
  • Object
show all
Defined in:
lib/pump/xml/value.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#attributes, #name, #nodes

Instance Method Summary collapse

Methods inherited from Node

#initialize, #level=

Constructor Details

This class inherits a constructor from Pump::Xml::Node

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



6
7
8
# File 'lib/pump/xml/value.rb', line 6

def options
  @options
end

Instance Method Details

#plainObject



8
9
10
# File 'lib/pump/xml/value.rb', line 8

def plain
  "object.#{name}"
end

#to_s(plain_path = nil) ⇒ Object



12
13
14
# File 'lib/pump/xml/value.rb', line 12

def to_s(plain_path=nil)
  "\#{#{remove_ilegal_chars}#{plain_path || plain}#{cast}}"
end