Method: Ayadn::Status#too_long

Defined in:
lib/ayadn/status.rb

#too_long(size, max_size) ⇒ Object



391
392
393
394
395
396
397
398
# File 'lib/ayadn/status.rb', line 391

def too_long(size, max_size)
  diff = size - max_size
  diff > 1 ? pl = "s" : pl = ""
  say do
    say_error "text too long"
    say_green :info, "#{max_size} max: #{diff} character#{pl} to remove"
  end
end