Skip to content

Commit 01e5cfd

Browse files
committed
Update installation on README
1 parent c1a835f commit 01e5cfd

1 file changed

Lines changed: 21 additions & 3 deletions

File tree

README.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,29 @@ A ruby library/gem for interacting with `.docx` files. currently capabilities in
44

55
## Usage
66

7+
### Prerequisites
8+
9+
- Ruby 2.4 or later
10+
711
### Install
812

9-
Requires ruby (tested with 2.1.1)
13+
Add the following line to your application's Gemfile:
14+
15+
```ruby
16+
gem 'docx'
17+
```
18+
19+
And then execute:
1020

11-
gem 'docx', '~> 0.3.0'
21+
```shell
22+
bundle install
23+
```
24+
25+
Or install it yourself as:
26+
27+
```shell
28+
gem install docx
29+
```
1230

1331
### Reading
1432

@@ -61,7 +79,7 @@ doc.tables.each do |table|
6179
puts cell.text
6280
end
6381
end
64-
82+
6583
table.columns.each do |column| # Column-based iteration
6684
column.cells.each do |cell|
6785
puts cell.text

0 commit comments

Comments
 (0)