lib/naniyatsu.rb in naniyatsu-0.0.1 vs lib/naniyatsu.rb in naniyatsu-0.0.2

- old
+ new

@@ -12,9 +12,10 @@ def inherited(klass) root_naniyatsu_class = klass.superclass.root_naniyatsu_class klass.instance_variable_set :@root_naniyatsu_class, root_naniyatsu_class klass.send(:define_method, naniyatsu_method_name(klass), -> { true }) root_naniyatsu_class.send(:define_method, naniyatsu_method_name(klass), -> { false }) + super end def naniyatsu_method_name(klass) klass.to_s.underscore + '?' end