Sha256: bd68116dec78147137c5e1e817513f6720737775e83075174abd24557672ef44

Contents?: true

Size: 583 Bytes

Versions: 1

Compression:

Stored size: 583 Bytes

Contents

# FileToTempfile

Easily convert a File object to a Tempfile object.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'file_to_tempfile'
```

And then execute:

```sh
$ bundle install
```

## Usage

```ruby
require 'file_to_tempfile'

file = File.open '.gitignore'

tempfile = FileToTempfile.convert(file)
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ZaikoXander/file_to_tempfile.

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
file_to_tempfile-0.1.3 README.md