method

method_missing

ruby latest stable - Class: Date::Format::Bag

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_2_180) is shown here.

method_missing(t, *args, &block)
public

No documentation available.

# File lib/date/format.rb, line 118
      def method_missing(t, *args, &block)
        t = t.to_s
        set = t.chomp!('=')
        t = t.intern
        if set
          @elem[t] = args[0]
        else
          @elem[t]
        end
      end