Class: Xmlcellent::Format
- Inherits:
-
Object
- Object
- Xmlcellent::Format
- 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
-
#finder ⇒ Object
readonly
Returns the value of attribute finder.
-
#lexicon ⇒ Object
readonly
Returns the value of attribute lexicon.
Instance Method Summary collapse
-
#initialize(config) ⇒ Format
constructor
A new instance of Format.
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
#finder ⇒ Object (readonly)
Returns the value of attribute finder.
6 7 8 |
# File 'lib/xmlcellent/format.rb', line 6 def finder @finder end |
#lexicon ⇒ Object (readonly)
Returns the value of attribute lexicon.
6 7 8 |
# File 'lib/xmlcellent/format.rb', line 6 def lexicon @lexicon end |