Sha256: 1f6a0657ab7f86ab7e9303cf85f89905e14a96b54b78ade52dd01a3bf624d497

Contents?: true

Size: 293 Bytes

Versions: 6

Compression:

Stored size: 293 Bytes

Contents

module Rasti
  module Types
    class IO
      class << self

        include Castable

        private

        def valid?(value)
          value.respond_to?(:read) && value.respond_to?(:write)
        end

        def transform(value)
          value
        end

      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rasti-types-2.0.1 lib/rasti/types/io.rb
rasti-types-2.0.0 lib/rasti/types/io.rb
rasti-types-1.1.2 lib/rasti/types/io.rb
rasti-types-1.1.1 lib/rasti/types/io.rb
rasti-types-1.1.0 lib/rasti/types/io.rb
rasti-types-1.0.0 lib/rasti/types/io.rb