Class: Xmlcellent::Format

Inherits:
Object
  • Object
show all
Defined in:
lib/xmlcellent/format.rb

Overview

Given a hash with a :finder key and a :lexicon key, this model stores config information for a parser.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Format

Returns a new instance of Format.



8
9
10
11
# File 'lib/xmlcellent/format.rb', line 8

def initialize(config)
  @finder  = config[:finder]
  @lexicon = config[:lexicon]
end

Instance Attribute Details

#finderObject (readonly)

Returns the value of attribute finder.



6
7
8
# File 'lib/xmlcellent/format.rb', line 6

def finder
  @finder
end

#lexiconObject (readonly)

Returns the value of attribute lexicon.



6
7
8
# File 'lib/xmlcellent/format.rb', line 6

def lexicon
  @lexicon
end