Class: XTF::Search::Element::OrNear

Inherits:
Near show all
Defined in:
lib/xtf/search/element/or_near.rb

Overview

Extends Near, as they are identical except for tag_name

Constant Summary

Constants inherited from Clause

Clause::VALID_TAG_NAMES

Constants inherited from Base

Base::BASE_ATTRIBUTE_KEYS

Instance Attribute Summary

Attributes inherited from Clause

#content, #section_type, #term

Attributes inherited from Base

#tag_name

Instance Method Summary collapse

Methods inherited from Clause

create, #to_xml, #to_xml_node

Methods inherited from Base

attribute_keys, #attributes

Constructor Details

#initialize(*args) ⇒ OrNear

slop is required. You can pass it in as the first argument or in the attributes Hash with the key :slop.



7
8
9
10
# File 'lib/xtf/search/element/or_near.rb', line 7

def initialize(*args)
  @tag_name = "orNear"
  super
end