Sha256: 0c093e5ec2d63770e682bb86e6b0f7c8266170b9c8743245daa999a2f3c738a3
Contents?: true
Size: 597 Bytes
Versions: 2
Compression:
Stored size: 597 Bytes
Contents
module ChhMoretext class Moretext < Base class << self def sentence(sentence_length_range = nil) fetch_moretext(1, sentence_length_range)[0] end def sentences(sentence_count = 1, sentence_length_range = nil) fetch_moretext(sentence_count, sentence_length_range).join("") end def paragraph(sentence_count = 3) sentences(sentence_count) end def paragraphs(paragraph_count = 3) [].tap { |paragraphs| paragraph_count.times { paragraphs << paragraph } }.join("\r\n\r\n") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chh_moretext-0.1.7 | lib/chh_moretext/moretext.rb |
chh_moretext-0.1.6 | lib/chh_moretext/moretext.rb |