Module: Kerbi::Mixins::EntryTagLogic::ClassMethods

Defined in:
lib/mixins/entry_tag_logic.rb

Overview

private :do_resolve_tag_expr private :resolve_candidate_read_word

Instance Method Summary collapse

Instance Method Details

#generate_random_tagString

Uses the Spicy::Proton gem to generate a convenient, human-readable random tag for a state entry.

Returns:

  • (String)


178
179
180
181
# File 'lib/mixins/entry_tag_logic.rb', line 178

def generate_random_tag
  gen = Spicy::Proton.new
  "#{gen.adjective(max: 5)}-#{gen.noun(max: 5)}"
end