birch 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -371,6 +371,9 @@ void Init_native(void) {
371
371
  */
372
372
  birch_tree = rb_define_class_under(birch, "Tree", rb_cObject);
373
373
 
374
+ // Mixin Enumerable.
375
+ rb_include_module(birch_tree, rb_mEnumerable);
376
+
374
377
  // Attribute accessors
375
378
  rb_attr(birch_tree, rb_intern("id"), 1, 1, 1);
376
379
  rb_attr(birch_tree, rb_intern("value"), 1, 1, 1);
@@ -2,6 +2,8 @@ module Birch
2
2
 
3
3
  class Tree
4
4
 
5
+ include Enumerable
6
+
5
7
  attr_accessor :id, :value
6
8
  attr_accessor :parent, :features
7
9
  attr_reader :children, :edges
@@ -1,3 +1,3 @@
1
1
  module Birch
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: birch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-12-14 00:00:00.000000000 Z
13
+ date: 2013-01-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec