barmcakes 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/file.rb +8 -0
  2. metadata +2 -2
data/lib/file.rb CHANGED
@@ -6,4 +6,12 @@ class File
6
6
  end
7
7
  end
8
8
 
9
+ def list_of_things_in_column(col=0,sep="\t",comment_char="#")
10
+ things = {}
11
+ self.each_except_comments(comment_char) do |line|
12
+ things[ line.split(/#{sep}/)[col] ] = true
13
+ end
14
+ things.keys
15
+ end
16
+
9
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: barmcakes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
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-06-06 00:00:00.000000000 Z
12
+ date: 2013-06-13 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Just really stuff that I cobbled together that I use. You probably don't
15
15
  want this.