Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
Fix compatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Braiden Vasco committed Jan 17, 2016
1 parent 675062d commit 2bde837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/typeclass.rb
Expand Up @@ -185,8 +185,8 @@ def check_superclasses_implemented!(raw_params)
end

def inherit(typeclass)
typeclass.instance_methods.each do |method_name|
p = typeclass.instance_method(method_name).bind self
typeclass.singleton_methods.each do |method_name|
p = typeclass.method method_name

define_singleton_method method_name, &p
define_method method_name, &p
Expand Down

0 comments on commit 2bde837

Please sign in to comment.