Module: ReadingTime
- Defined in:
- liquid_reading_time.rb
Instance Method Summary collapse
Instance Method Details
#count_words(html) ⇒ Object
13 14 15 |
# File 'liquid_reading_time.rb', line 13 def count_words(html) words(html).length end |
#reading_time(html) ⇒ Object
17 18 19 |
# File 'liquid_reading_time.rb', line 17 def reading_time(html) (count_words(html) / 270.0).ceil end |