class Pokeberu::Decorator

Constants

LENGTH

Public Instance Methods

decorate(text) click to toggle source
# File lib/pokeberu/decorator.rb, line 5
    def decorate(text)
      <<-TEXT
#{hr}
| #{text.ljust(LENGTH)} |
#{hr}
      TEXT
    end

Private Instance Methods

hr() click to toggle source
# File lib/pokeberu/decorator.rb, line 15
def hr
  '-' * (LENGTH + 4)
end