Module: JekyllReadTime::ReadingTimeFilterShort

Defined in:
lib/jekyll-read-time/filter.rb

Instance Method Summary collapse

Instance Method Details

#read_time_short(input) ⇒ Object



33
34
35
36
# File 'lib/jekyll-read-time/filter.rb', line 33

def read_time_short( input )
  minutes = calculate_time(input)
  minutes > 0 ? "#{minutes} min read" : "1 min read"
end