Class: Scheman::ParserBuilder
- Inherits:
-
Object
- Object
- Scheman::ParserBuilder
- Defined in:
- lib/scheman/parser_builder.rb
Class Method Summary collapse
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(type) ⇒ ParserBuilder
constructor
A new instance of ParserBuilder.
Constructor Details
#initialize(type) ⇒ ParserBuilder
Returns a new instance of ParserBuilder.
10 11 12 |
# File 'lib/scheman/parser_builder.rb', line 10 def initialize(type) @type = type end |
Class Method Details
.build(type) ⇒ Scheman::Parsers::Base
5 6 7 |
# File 'lib/scheman/parser_builder.rb', line 5 def self.build(type) new(type).build end |
Instance Method Details
#build ⇒ Object
14 15 16 |
# File 'lib/scheman/parser_builder.rb', line 14 def build parser_class.new end |