Update base.rb

Added missing `end`