Sha256: 07a6ac48bb6bd7c10636d7df75225ab1ebb5138ec87d98d9f376985d49d06155

Contents?: true

Size: 492 Bytes

Versions: 5

Compression:

Stored size: 492 Bytes

Contents

module Kangaroo
  module Util
    class Loader
      module Model
        def self.included klass
          klass.class_attribute :column_names
          klass.column_names = %w(state osv_memory name model info field_id access_ids)
          klass.define_multiple_accessors *klass.column_names
        end

        def length_of_model_name
          model.length
        end

        def model_class_name
          self.class.namespace.oo_to_ruby model
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kangaroo-0.1.0.alpha1 lib/kangaroo/util/loader/model.rb
kangaroo-0.0.3 lib/kangaroo/util/loader/model.rb
kangaroo-0.0.2 lib/kangaroo/util/loader/model.rb
kangaroo-0.0.1.pre2 lib/kangaroo/util/loader/model.rb
kangaroo-0.0.1.pre lib/kangaroo/util/loader/model.rb