siefca-bufferaffects 0.0.4 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -92,7 +92,7 @@
92
92
  #
93
93
  # class Main
94
94
  #
95
- # extend BufferAffects
95
+ # include BufferAffects
96
96
  #
97
97
  # buffers_reset_method :reset_path_buffer
98
98
  # attr_affects_buffers :subpart
@@ -116,8 +116,14 @@
116
116
  # p obj.path
117
117
 
118
118
  module BufferAffects
119
+
120
+ def self.included(base) #:nodoc:
121
+ base.extend(ClassMethods)
122
+ end
123
+
124
+ module ClassMethods
119
125
 
120
- extend AttrInheritable
126
+ include AttrInheritable
121
127
 
122
128
  attr_inheritable_hash :__ba_wrapped__
123
129
  attr_inheritable :__ba_reset_method__
@@ -241,6 +247,8 @@ module BufferAffects
241
247
  def method_added(name)
242
248
  ba_check_method(name)
243
249
  end
250
+
251
+ end
244
252
 
245
253
  end
246
254
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: siefca-bufferaffects
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Pawe\xC5\x82 Wilk"