lib/rubyfocus/items/named_item.rb in rubyfocus-0.4.0 vs lib/rubyfocus/items/named_item.rb in rubyfocus-0.5.1
- old
+ new
@@ -4,9 +4,13 @@
def apply_xml(n)
super(n)
conditional_set(:name, n.at_xpath("xmlns:name"), &:inner_html)
end
+ def to_s
+ @name
+ end
+
private
def inspect_properties
super + %w(name)
end
end
\ No newline at end of file