Code Coverage
 
Lines
Covered
100.00% covered (success)
100.00%
14 / 14
1
module TheFox
1
module TermKit
1
class Size
1
attr_accessor :width
1
attr_accessor :height
1
def initialize(width = nil, height = nil)
176
@width = width
176
@height = height
end
1
def to_s
4
"#{@width}:#{@height}"
end
1
def inspect
4
w_s = @width.nil? ? 'NIL' : @width.to_s
4
h_s = @height.nil? ? 'NIL' : @height.to_s
4
"#<Size w=#{w_s} h=#{h_s}>"
end
end
end
end