module WeatherCard::InstanceMethods

Public Class Methods

new(day) click to toggle source
# File lib/concerns/weathercard.rb, line 10
def initialize(day)
    self.day = day
    self.class.all << self
end

Public Instance Methods

line_end() click to toggle source
# File lib/concerns/weathercard.rb, line 19
def line_end
    self.class.horizontal * (self.class.length + 2)
end
line_intermediate(value) click to toggle source
# File lib/concerns/weathercard.rb, line 23
def line_intermediate(value)
    "#{self.class.vertical}#{value}#{self.class.vertical}"
end
return_spaces(length) click to toggle source
# File lib/concerns/weathercard.rb, line 15
def return_spaces(length)
    ' ' * (self.class.length - length)
end