class Serialisable::Selector::Node

Public Instance Methods

match(root) click to toggle source
# File lib/serialisable/selector.rb, line 30
def match(root)
  parse root.children
    .find {|node| node.name == @selector }
    .children.to_s
end