Method: Cal#set_params

Defined in:
lib/cal.rb

#set_paramsObject



48
49
50
51
52
53
54
55
# File 'lib/cal.rb', line 48

def set_params
  @dw = if @opt_j then 3 else 2 end
  @mw = (@dw + 1) * 7 - 1
  @mn = if @opt_j then 2 else 3 end
  @tw = (@mw + 2) * @mn - 2
  @k  = if @opt_m then 1 else 0 end
  @da = if @opt_j then :yday else :mday end
end