Permalink
Browse files

Add default implementations for new Scope#add_constant and Scope#find…

…_constant
  • Loading branch information...
vidarh committed Sep 21, 2014
1 parent 0084643 commit 3a7e27500f2dcc33942ec8373a933770f47da785
Showing with 8 additions and 0 deletions.
  1. +8 −0 scope.rb
View
@@ -4,6 +4,14 @@ class Scope
def method
nil
end
def add_constant(c)
@next.add_constant(c) if @next
end
def find_constant(c)
@next.find_constant(c) if @next
end
end

0 comments on commit 3a7e275

Please sign in to comment.