hashtree 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  class HashTree
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/hashtree.rb CHANGED
@@ -70,6 +70,10 @@ class HashTree
70
70
  @index.count
71
71
  end
72
72
 
73
+ def has_key?(key)
74
+ @index.has_key?(key)
75
+ end
76
+
73
77
  def branch(key)
74
78
  branch_id = get_branch_id(key)
75
79
  @branches[branch_id] if branch_id
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hashtree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: