Sha256: c4f63b88f73e439314245f92abcfcc6d707e7c0b2357e7109f721fc0ec78bf37

Contents?: true

Size: 242 Bytes

Versions: 1

Compression:

Stored size: 242 Bytes

Contents

module Wukong
  class Looper < Wukong::Source

    def each
      loop do
        yield generate
      end
    end

  end

  require 'forgery'
  class ForgeryLooper < Looper
    def generate
      Forgery.text(:sentence, 1)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wukong-3.0.0.pre lib/away/source/looper.rb