Skip to content

Commit

Permalink
Added basic "Usage" section
Browse files Browse the repository at this point in the history
  • Loading branch information
claasz authored Jan 14, 2021
1 parent 561e295 commit 653348d
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,33 @@ Or install it yourself as:

## Usage

TODO: Write usage instructions here
```
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "roo-xls"
gem "minitest"
end
require "roo-xls"
require "minitest/autorun"
class BugTest < Minitest::Test
def test_stuff
sheet = Roo::Excel.new('/Users/gturner/downloads/table.xls')
puts sheet.row(1)
end
end
```

## Contributing

Expand Down

0 comments on commit 653348d

Please sign in to comment.