Created
December 13, 2017 14:04
-
-
Save mitsuru/0c3db89eddd383b63623e86e8aa47c1c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module FFaker | |
# :nocov: | |
module LoremJA | |
require 'ya_lorem_ja' | |
extend ::FFaker::ModuleUtils | |
module_function | |
Lorem = YaLoremJa::Lorem.new | |
def word | |
Lorem.word | |
end | |
def words(num = 3) | |
Lorem.words(num) | |
end | |
def sentence(_word_count = 3) | |
Lorem.sentence | |
end | |
def sentences(num_of_sentces) | |
Lorem.sentences(num_of_sentces) | |
end | |
def paragraph(option = {}) | |
Lorem.paragraph(option) | |
end | |
def paragraphs(paragraph_count = 3) | |
Lorem.paragraphs(paragraph_count) | |
end | |
end | |
# :nocov: | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment