class TenkiJp::Data::Day
Constants
- MEMBERS
Public Class Methods
new(data)
click to toggle source
# File lib/tenkijp/data.rb, line 86 def initialize(data) @d = data end
Public Instance Methods
index()
click to toggle source
# File lib/tenkijp/data.rb, line 101 def index "#{@d['ds']}は、#{@d['index_str']}。" end
spaced_wt()
click to toggle source
# File lib/tenkijp/data.rb, line 96 def spaced_wt wt = @d['wt'] wt + (4-wt.size).times.map{' '}.join end
to_s()
click to toggle source
# File lib/tenkijp/data.rb, line 90 def to_s w = <<EOB #{@d['dt']}(#{@d['dy']}) | #{spaced_wt} | #{@d['min_t']} | #{@d['max_t']} | #{"%2s" % @d['p_day']}% (#{@d['p_zero']}%, #{@d['p_six']}%, #{@d['p_twelve']}%, #{@d['p_eighteen']}%) EOB end