Sha256: 92ff645d1f11a36d96554a8f0787b139e1146f8ae24561958d9fe58d3a339ec9

Contents?: true

Size: 338 Bytes

Versions: 7

Compression:

Stored size: 338 Bytes

Contents

module PR
  module Fields
    class GenericField

      def initialize value = nil, options = {}
        @value, @options = value, options
      end
      attr_reader :options

      def raw
        @value
      end

      def populate value
        @value = value
      end

      def convert
        @value
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pr-1.0.0 lib/pr/fields/generic_field.rb
pr-0.0.7 lib/pr/fields/generic_field.rb
pr-0.0.6 lib/pr/fields/generic_field.rb
pr-0.0.5 lib/pr/fields/generic_field.rb
pr-0.0.4 lib/pr/fields/generic_field.rb
pr-0.0.3 lib/pr/fields/generic_field.rb
pr-0.0.2 lib/pr/fields/generic_field.rb