Sha256: eca38410f5b274ac5be4998847171627d4e52e692d70aed6c9e3c5fe310671e0

Contents?: true

Size: 594 Bytes

Versions: 6

Compression:

Stored size: 594 Bytes

Contents

module ChhMoretext
  class Moretext < Base
    class << self
      def sentence(sentence_length_range = nil)
        fetch_moretext(1, sentence_length_range)
      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

6 entries across 6 versions & 1 rubygems

Version Path
chh_moretext-0.1.5 lib/chh_moretext/moretext.rb
chh_moretext-0.1.4 lib/chh_moretext/moretext.rb
chh_moretext-0.1.3 lib/chh_moretext/moretext.rb
chh_moretext-0.1.2 lib/chh_moretext/moretext.rb
chh_moretext-0.1.1 lib/chh_moretext/moretext.rb
chh_moretext-0.1.0 lib/chh_moretext/moretext.rb