Sha256: fc42b4c3aa272075adac79e4aa4ae6db3bf9ec362bfd0c26a34a722fc8e336a5
Contents?: true
Size: 384 Bytes
Versions: 14
Compression:
Stored size: 384 Bytes
Contents
class Rubyfocus::Context < Rubyfocus::RankedItem include Rubyfocus::Parser def self.matches_node?(node) return (node.name == "context") end attr_accessor :location def apply_xml(n) super(n) conditional_set(:container_id,n.at_xpath("xmlns:context")) { |e| e["idref"] } conditional_set(:location, n.at_xpath("xmlns:location")){ |e| Rubyfocus::Location.new(e) } end end
Version data entries
14 entries across 14 versions & 1 rubygems