rubyexcel 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rubyexcel/data.rb +1 -1
- data/lib/rubyexcel/excel_tools.rb +3 -1
- data/lib/rubyexcel/section.rb +9 -0
- data/lib/rubyexcel.rb +1 -1
- metadata +2 -2
data/lib/rubyexcel/data.rb
CHANGED
data/lib/rubyexcel/section.rb
CHANGED
@@ -20,6 +20,10 @@ module RubyExcel
|
|
20
20
|
end
|
21
21
|
data[ translate_address( lastone ) ] = value
|
22
22
|
end
|
23
|
+
|
24
|
+
def cell( ref )
|
25
|
+
Element.new( sheet, translate_address( ref ) )
|
26
|
+
end
|
23
27
|
|
24
28
|
def delete
|
25
29
|
data.delete( self )
|
@@ -108,6 +112,11 @@ module RubyExcel
|
|
108
112
|
super( sheet )
|
109
113
|
end
|
110
114
|
|
115
|
+
def cell_by_header( header )
|
116
|
+
cell( getref( header ) )
|
117
|
+
end
|
118
|
+
alias cell_h cell_by_header
|
119
|
+
|
111
120
|
def getref( header )
|
112
121
|
column_id( sheet.row(1).find &/#{header}/ )
|
113
122
|
end
|
data/lib/rubyexcel.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubyexcel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-17 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A tabular data structure, mixing Ruby with some of Excel's API style.
|
15
15
|
email: VirtuosoJoel@gmail.com
|