lib/annal/parse.rb in annal-0.0.2 vs lib/annal/parse.rb in annal-0.0.3

- old
+ new

@@ -6,10 +6,14 @@ def initialize(raw_data) self.raw_data = raw_data end def data - parse_yaml + @data ||= parse_yaml + end + + def parseable? + not data.kind_of?(String) end # Also parses JSON def parse_yaml begin \ No newline at end of file