Hacker Newsnew | past | comments | ask | show | jobs | submit | flazy's commentslogin

I really like the required(name) solution.

  module RequiredParameter
    refine Kernel
      def required(name)
        raise ArgumentError, ...
      end
      private :required
    end
  end
Can't wait to test this code. :P


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: