Class: Serialisable::Selector::Attribute

Inherits:
Serialisable::Selector show all
Defined in:
lib/serialisable/selector.rb

Instance Attribute Summary

Attributes inherited from Serialisable::Selector

#name

Instance Method Summary collapse

Methods inherited from Serialisable::Selector

#initialize, #parse

Constructor Details

This class inherits a constructor from Serialisable::Selector

Instance Method Details

#match(root) ⇒ Object


24
25
26
# File 'lib/serialisable/selector.rb', line 24

def match(root)
  parse root.attributes[@selector].value
end