Class: Athena::Parser
Overview
–
#
A component of athena, the database file converter. #
#
Copyright © 2007-2009 University of Cologne, #
Albertus-Magnus-Platz, #
50932 Cologne, Germany #
#
Authors: #
Jens Wille <[email protected]> #
#
athena is free software; you can redistribute it and/or modify it under the # terms of the GNU General Public License as published by the Free Software # Foundation; either version 3 of the License, or (at your option) any later # version. #
#
athena is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. #
#
You should have received a copy of the GNU General Public License along # with athena. If not, see <www.gnu.org/licenses/>. #
#
++
Constant Summary collapse
- DEFAULT_SEPARATOR =
', '
- DEFAULT_EMPTY =
'<<EMPTY>>'
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#spec ⇒ Object
readonly
Returns the value of attribute spec.
Instance Method Summary collapse
-
#initialize(config, spec) ⇒ Parser
constructor
A new instance of Parser.
- #parse(source, &block) ⇒ Object
Methods included from Util
Constructor Details
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block.
37 38 39 |
# File 'lib/athena/parser.rb', line 37 def block @block end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
36 37 38 |
# File 'lib/athena/parser.rb', line 36 def config @config end |
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
36 37 38 |
# File 'lib/athena/parser.rb', line 36 def spec @spec end |