Sha256: dd6a7d51006f23958b0ea713ea9a5f6f048c3bfe804a52057f5cf2198b47ac2d

Contents?: true

Size: 523 Bytes

Versions: 11

Compression:

Stored size: 523 Bytes

Contents

module Copyable
  class SyntaxChecker

    def self.check!(model_class, declaration_block)
      raise CopyableError.new("You must pass copyable a block") if declaration_block.nil?
      declaration_checker = DeclarationChecker.new
      declaration_checker.verify!(declaration_block)
      column_checker = ColumnChecker.new(model_class)
      column_checker.verify!(declaration_block)
      association_checker = AssociationChecker.new(model_class)
      association_checker.verify!(declaration_block)
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
copyable-0.3.5 lib/copyable/syntax_checking/syntax_checker.rb
copyable-0.3.3 lib/copyable/syntax_checking/syntax_checker.rb
copyable-0.3.2 lib/copyable/syntax_checking/syntax_checker.rb
copyable-0.3.1 lib/copyable/syntax_checking/syntax_checker.rb
copyable-0.3.0 lib/copyable/syntax_checking/syntax_checker.rb
copyable-0.2.0 lib/copyable/syntax_checking/syntax_checker.rb
copyable-0.1.2 lib/copyable/syntax_checking/syntax_checker.rb
copyable-0.1.1 lib/copyable/syntax_checking/syntax_checker.rb
copyable-0.1.0 lib/copyable/syntax_checking/syntax_checker.rb
copyable-0.0.2 lib/copyable/syntax_checking/syntax_checker.rb
copyable-0.0.1 lib/copyable/syntax_checking/syntax_checker.rb