class Sqlite::DatasetsParser
Public Class Methods
new()
click to toggle source
# File lib/parsers/datasets_parser.rb, line 4 def initialize @fields = { required: [:type, :expected], optional: [:seed] } end
Public Instance Methods
choose_solution(_solution)
click to toggle source
# File lib/parsers/datasets_parser.rb, line 11 def choose_solution(_solution) @solutions end
Protected Instance Methods
get_expected()
click to toggle source
# File lib/parsers/datasets_parser.rb, line 22 def get_expected COMMENT end
strip_lines(array)
click to toggle source
# File lib/parsers/datasets_parser.rb, line 26 def strip_lines(array) array.to_s .split("\n") .map(&:strip) .join("\n") end
transform_test()
click to toggle source
Calls superclass method
Sqlite::BaseParser#transform_test
# File lib/parsers/datasets_parser.rb, line 17 def transform_test @solutions = strip_lines get(:expected) super end