class Nokogiri::XML::Node

Attributes

_scene[RW]

Public Instance Methods

add_element(c) click to toggle source
# File lib/rubyvis/scene/svg_scene.rb, line 31
def add_element(c)
  add_child(c)
end
delete_attribute(name) click to toggle source
# File lib/rubyvis/scene/svg_scene.rb, line 48
def delete_attribute(name)
  remove_attribute(name)
end
get_element(i) click to toggle source
# File lib/rubyvis/scene/svg_scene.rb, line 40
def get_element(i)
  elements.empty? ? nil : elements[i-1]
end
next_sibling_node() click to toggle source

private :elements private :attributes

# File lib/rubyvis/scene/svg_scene.rb, line 45
def next_sibling_node
  next_sibling
end
set_attributes(h) click to toggle source
# File lib/rubyvis/scene/svg_scene.rb, line 35
def set_attributes(h)
  h.each do |k,v|
    set_attribute(k,v.to_s)
  end
end
text() click to toggle source
# File lib/rubyvis/scene/svg_scene.rb, line 51
def text
  content
end
text=(v) click to toggle source
# File lib/rubyvis/scene/svg_scene.rb, line 54
def text=(v)
  self.content=v
end