Top Level Namespace

Defined Under Namespace

Modules: Hobostove

Instance Method Summary collapse

Instance Method Details

#Line(obj) ⇒ Object



76
77
78
79
80
81
82
83
84
# File 'lib/hobostove/line.rb', line 76

def Line(obj)
  if obj.is_a?(Hobostove::Line)
    obj
  else
    Hobostove::Line.new.tap do |line|
      line.add(:white, obj.to_s)
    end
  end
end