Module: MARCSpec

Defined in:
lib/marcspec/dsl.rb,
lib/marcspec/map.rb,
lib/marcspec/kvmap.rb,
lib/marcspec/specset.rb,
lib/marcspec/customspec.rb,
lib/marcspec/leaderspec.rb,
lib/marcspec/constantspec.rb,
lib/marcspec/multivaluemap.rb,
lib/marcspec/solrfieldspec.rb,
lib/marcspec/controlfieldspec.rb,
lib/marcspec/variablefieldspec.rb

Defined Under Namespace

Classes: ConstantSolrSpec, ControlFieldSpec, CustomSolrSpec, KVMap, LeaderSpec, Map, MockSolrDoc, MultiValueMap, SolrFieldSpec, SpecSet, VariableFieldSpec

Class Method Summary collapse

Class Method Details

.build(&blk) ⇒ Object

Here's where we put a simple DSL hook for SpecSet



4
5
6
7
8
# File 'lib/marcspec/dsl.rb', line 4

def self.build (&blk)
  ss = SpecSet.new
  ss.instance_eval(&blk)
  return ss
end