class Rubyfocus::Setting

Attributes

value[RW]

Public Class Methods

matches_node?(node) click to toggle source
# File lib/rubyfocus/items/setting.rb, line 3
def self.matches_node?(node)
        return (node.name == "xmlns:plist")
end

Public Instance Methods

apply_xml(n) click to toggle source
Calls superclass method Rubyfocus::Item#apply_xml
# File lib/rubyfocus/items/setting.rb, line 9
def apply_xml(n)
        super(n)
        conditional_set(:value, n.at_xpath("xmlns:plist").children.first){ |e| Rubyfocus::XMLTranslator.parse(e) }
end
inspect() click to toggle source
# File lib/rubyfocus/items/setting.rb, line 14
def inspect
        form_inspector(:id, :name, :value, :added, :modified)
end