class Yalphabetize::Reader
Attributes
Public Class Methods
Public Instance Methods
Private Instance Methods
Source
# File lib/yalphabetize/reader.rb, line 37 def parser_class if Yalphabetize.config['preserve_comments'] Psych::Comments else Psych end end
Source
# File lib/yalphabetize/reader.rb, line 24 def stream_node @_stream_node ||= parser_class.parse_stream file rescue Psych::SyntaxError => e raise Yalphabetize::ParsingError.new( path, e.line, e.column, e.offset, e.problem, e.context ) end