Method: Date::Format::Bag#method_missing

Defined in:
lib/project/format.rb

#method_missing(t, *args, &block) ⇒ Object



118
119
120
121
122
123
124
125
126
127
# File 'lib/project/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