class Pebbles::TotsuGen::OriginFormatter
なんか、元々はこういうフォーマットだったっぽいので一応実装しておいた。
Private Instance Methods
body_bottom()
click to toggle source
# File lib/pebbles/totsugen/formatters.rb, line 53 def body_bottom ('Y^' * (body_length / 2)).chop end
body_top()
click to toggle source
# File lib/pebbles/totsugen/formatters.rb, line 38 def body_top half = '人' * ((body_length / 2) / 2) shortage = body_length % 4 padding = case shortage when 3, 2 '人' when 1 '' when 0 ' ' end "#{half}#{padding}#{half}" end
center()
click to toggle source
# File lib/pebbles/totsugen/formatters.rb, line 34 def center "> #{@body} <" end