Sha256: 979d5ddf1b30e5afab08030279a0006a8a54c9464dc636022ac5621b39842c88

Contents?: true

Size: 354 Bytes

Versions: 7

Compression:

Stored size: 354 Bytes

Contents

module PushType
  module Fields
    module ClassMethods

      attr_reader :initialized_blk

      def options(*opts)
        @options ||= opts.first
      end

      def initialized_on_node(&block)
        @initialized_blk = block
      end

      def kind
        self.name.demodulize.underscore.gsub(/_(field|type)$/, '')
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
push_type_core-0.5.3 lib/push_type/fields/class_methods.rb
push_type_core-0.5.2 lib/push_type/fields/class_methods.rb
push_type_core-0.5.1 lib/push_type/fields/class_methods.rb
push_type_core-0.5.0 lib/push_type/fields/class_methods.rb
push_type_core-0.5.0.alpha.5 lib/push_type/fields/class_methods.rb
push_type_core-0.5.0.alpha.4 lib/push_type/fields/class_methods.rb
push_type_core-0.5.0.alpha.3 lib/push_type/fields/class_methods.rb