Sha256: ac73e3b9e4fad40bb0423708222119cc2ae8f4b234439980b7b5a59f956edc34
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 Bytes
Contents
require_relative "hsql/version" require_relative "hsql/template" require_relative "hsql/file" require 'mustache' module HSQL # This is used to indicate when a source file is malformed. class FormatError < StandardError end # Given the contents of a SQL file with YAML front matter (see README for an # example) this will return a HSQL::File object providing access to the parts # of that file. def self.parse(string, environment) raise ArgumentError, "The environment argument is required" unless environment File.new(string, environment).parse! end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hsql-0.1.0 | lib/hsql.rb |