Class: Sie::Parser::BuildEntry
- Inherits:
-
Object
- Object
- Sie::Parser::BuildEntry
- Defined in:
- lib/sie/parser/build_entry.rb
Constant Summary collapse
- InvalidEntryError =
Class.new(StandardError)
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/sie/parser/build_entry.rb', line 8 def call if first_token.known_entry_type? build_complete_entry elsif lenient build_empty_entry else raise_invalid_entry_error end end |