class Faker::Source
Public Class Methods
hello_world(lang = :ruby)
click to toggle source
# File lib/faker/source.rb, line 4 def hello_world(lang = :ruby) fetch("source.hello_world.#{lang}") end
print(str: 'some string', lang: :ruby)
click to toggle source
# File lib/faker/source.rb, line 8 def print(str: 'some string', lang: :ruby) code = fetch("source.print.#{lang}") code.gsub('faker_string_to_print', str) end
print_1_to_10(lang = :ruby)
click to toggle source
# File lib/faker/source.rb, line 13 def print_1_to_10(lang = :ruby) fetch("source.print_1_to_10.#{lang}") end