Sha256: c2980a792f2147920579b3f33fc9f8bff0cffc23b73fb5c3bb057f9b842b25f0
Contents?: true
Size: 568 Bytes
Versions: 1
Compression:
Stored size: 568 Bytes
Contents
require "faker/cheatsheet/version" require 'faker' module Faker module Cheatsheet def print_all(options = {}) include_source = !!options[:source] puts "# Faker Cheatsheet" puts Faker.constants.each do |k| next if %i[Cheatsheet Config Base VERSION].include?(k) puts "## #{k}" puts c = Faker.const_get(k) c.methods(false).each do |m| puts "- #{m}" if include_source puts source(k, m) end end puts end end extend self end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
faker-cheatsheet-0.1.0 | lib/faker/cheatsheet.rb |