Sha256: 35ea207b1aaa257de75d7bccdb1ddac8868624d3b188bcd104ea8de2988257d8

Contents?: true

Size: 473 Bytes

Versions: 1

Compression:

Stored size: 473 Bytes

Contents

require 'cat_ipsum/version'
require 'cat_ipsum/cat_actions'
require 'cat_ipsum/random'

module CatIpsum
  extend self

  def sentence
    Random.sample(CAT_ACTIONS.dup).join(', ').capitalize
  end

  alias phrase sentence

  def sentences(sentence_count = 5)
    (1..sentence_count).map { sentence }
  end

  alias phrases sentences

  def paragraph
    sentences.join('. ')
  end

  def paragraphs(paragraph_count = 5)
    (1..paragraph_count).map { paragraph }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cat_ipsum-0.2.1 lib/cat_ipsum.rb