[ruby-talk:02486] Module functions

From: Dave Thomas <Dave@...>
Date: 2000-04-15 05:41:43 UTC
List: ruby-talk #2486
Is there any difference between

  module Dave
    def Dave.dave
      # ..
    end
  end

and

  module Dave
    def dave
      # ..
    end
    module_function :dave
  end


The Dave.dave form seems to be more intuitive, and more in line with
the class method approach.


Dave

In This Thread

Prev Next