Sha256: 9eeac1572808efa0ddbf67d9d45c52f8254f56d4627b1be5c752501648bb1d9e

Contents?: true

Size: 341 Bytes

Versions: 7

Compression:

Stored size: 341 Bytes

Contents

module PR
  module Fields
    class StringField

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

      def raw
        @value
      end

      def populate value
        @value = value
      end

      def convert
        @value.to_s
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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