method

once

Importance_0
v1_8_7_72 - Show latest stable - 0 notes - Class: Date
once(*ids) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/date.rb, line 1005
    def once(*ids) # :nodoc:
      for id in ids
        module_eval "alias_method :__\#{id.to_i}__, :\#{id.to_s}\nprivate :__\#{id.to_i}__\ndef \#{id.to_s}(*args, &block)\n(@__\#{id.to_i}__ ||= [__\#{id.to_i}__(*args, &block)])[0]\nend\n"
      end
    end
Register or log in to add new notes.