Module: ShopifyCLI::Helpers::Haikunator
- Defined in:
- lib/shopify_cli/helpers/haikunator.rb
Class Method Summary collapse
Class Method Details
.haikunate(token_range = 9999, delimiter = "-") ⇒ Object
34 35 36 |
# File 'lib/shopify_cli/helpers/haikunator.rb', line 34 def haikunate(token_range = 9999, delimiter = "-") build(token_range, delimiter) end |
.name ⇒ Object
38 39 40 41 42 |
# File 'lib/shopify_cli/helpers/haikunator.rb', line 38 def name first = nouns[random_seed % nouns.length] last = adjectives[random_seed % adjectives.length] [first, last] end |
.title ⇒ Object
30 31 32 |
# File 'lib/shopify_cli/helpers/haikunator.rb', line 30 def title build(0, " ") end |