Sha256: 2dbe55b6c5867011b354a40662ec0b94e7ca705cd7ab6575c22e4d9cee962b0b

Contents?: true

Size: 605 Bytes

Versions: 6

Compression:

Stored size: 605 Bytes

Contents

require 'generators/analects'

module Analects
  module Generators
    class CedictGenerator < Analects::Generators::Base

      desc %{Description:\n    Copy analects CC-CEDICT files to your application.\n}

      def analects_create_cedict_table
        migration_template "create_cedict_table.rb", "db/migrate/create_cedict_table.rb"
      end

      def analects_populate_cedict_table
        migration_template "populate_cedict_table.rb", "db/migrate/populate_cedict_table.rb"
      end

      def analects_cedict_model
        template "model.rb", "app/models/cedict.rb"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
analects-0.4.2 lib/generators/analects/cedict/cedict_generator.rb
analects-0.4.1 lib/generators/analects/cedict/cedict_generator.rb
analects-0.4.0 lib/generators/analects/cedict/cedict_generator.rb
analects-0.3.1 lib/generators/analects/cedict/cedict_generator.rb
analects-0.2.1 lib/generators/analects/cedict/cedict_generator.rb
analects-0.2.0 lib/generators/analects/cedict/cedict_generator.rb