lib/alf/reader/rash.rb in alf-0.10.1 vs lib/alf/reader/rash.rb in alf-0.11.0

- old
+ new

@@ -6,11 +6,11 @@ # A .rash file/stream contains one ruby hash literal on each line. This # reader simply decodes each of them in turn with Kernel.eval, providing a # state-less reader (that is, tuples are not all loaded in memory at once). # class Rash < Reader - + # (see Reader#line2tuple) def line2tuple(line) begin h = Kernel.eval(line) raise "hash expected, got #{h}" unless h.is_a?(Hash) @@ -19,10 +19,10 @@ nil else return h end end - - Reader.register(:rash, [".rash"], self) + + Reader.register(:rash, [".rash"], self) end # class Rash end # class Reader end # module Alf