Method: Origami::Null.parse
- Defined in:
- lib/origami/null.rb
.parse(stream, _parser = nil) ⇒ Object
:nodoc:
39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/origami/null.rb', line 39 def self.parse(stream, _parser = nil) #:nodoc: offset = stream.pos if stream.skip(@@regexp).nil? raise InvalidNullObjectError end null = Null.new null.file_offset = offset null end |