class Text2048::TextView::Row
Board
row in text.
Public Class Methods
new(row)
click to toggle source
# File lib/text2048/text_view.rb, line 9 def initialize(row) @row = row end
Public Instance Methods
to_s()
click to toggle source
# File lib/text2048/text_view.rb, line 13 def to_s @row.map { |each| each != 0 ? each : '_' }.join(' ') end