Module: OM::XML::TermBuilder

Included in:
Term
Defined in:
lib/om/xml/term_builder.rb

Overview

Term::Builder Class Definition

When coding against Builders, remember that they rely on MethodMissing, so any time you call a method on the Builder that it doesn’t explicitly recognize, the Builder will add your method & arguments to the it’s settings and return itself.

Examples:

tb2 = OM::XML::Term::Builder.new("my_term_name").path("fooPath").attributes({:lang=>"foo"}).index_as([:searchable, :facetable]).required(true).type(:text)

Defined Under Namespace

Classes: Builder