module Faker::Cheatsheet
Constants
- VERSION
Public Instance Methods
print_all(options = {})
click to toggle source
# File lib/faker/cheatsheet.rb, line 6 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