Module: DevSuite::Utils::Emoji
- Defined in:
- lib/dev_suite/utils/emoji.rb
Constant Summary collapse
- STATUS =
Status-related emojis
{ start: "π", success: "β ", error: "π¨β", retry: "π₯", warning: "β οΈ", # For warnings caution: "π‘", # For caution or proceed with care pending: "π", # For pending or waiting paused: "βΈοΈ", # For paused or halted running: "π", # For running or in progress done: "π", # For done or completed finish: "π", # For finish or end stop: "π", # For stopping or halting cancel: "π«", # For canceling or aborting skip: "βοΈ", # For skipping or jumping next: "β©", # For next or moving forward previous: "βͺ", # For previous or moving backward up: "β¬οΈ", # For up or moving up down: "β¬οΈ", # For down or moving down left: "β¬ οΈ", # For left or moving left right: "β‘οΈ", # For right or moving right top: "π", # For top or highest bottom: "π", # For bottom or lowest middle: "π½", # For middle or center full: "π΄", # For full or maximum empty: "βͺ", # For empty or minimum }.freeze
- ACTIONS =
Action-related emojis
{ update: "π", # For updates or changes fix: "π§", # For fixes or repairs bug: "π", # For bugs or issues code: "π»", # For code or technical content }.freeze
- NOTIFICATIONS =
Notification-related emojis
{ info: "βΉοΈ", important: "β", note: "π", # For notes or annotations tip: "π‘", # For tips or helpful hints }.freeze
- RESOURCES =
Resource-related emojis
{ document: "π", # For representing documents or files network: "π", # For network-related logs database: "πΎ", # For database-related logs cache: "ποΈ", # For cache-related logs file: "π", # For file-related logs cookie: "πͺ", # For cookie-related logs header: "π", # For header-related logs request: "π€", # For request-related logs response: "π₯", # For response-related logs }.freeze
- DEFAULT_EMOJI =
"β"
- EMOJIS =
STATUS.merge(ACTIONS).merge(NOTIFICATIONS).merge(RESOURCES).freeze
Class Method Summary collapse
-
.all ⇒ Hash
Returns all emojis categorized by their purpose.
-
.get(key, default: DEFAULT_EMOJI) ⇒ String
Returns the emoji corresponding to the given key.
Class Method Details
.all ⇒ Hash
Returns all emojis categorized by their purpose.
79 80 81 82 83 84 85 86 |
# File 'lib/dev_suite/utils/emoji.rb', line 79 def all { status: STATUS, actions: ACTIONS, notifications: NOTIFICATIONS, resources: RESOURCES, } end |
.get(key, default: DEFAULT_EMOJI) ⇒ String
Returns the emoji corresponding to the given key.
73 74 75 |
# File 'lib/dev_suite/utils/emoji.rb', line 73 def get(key, default: DEFAULT_EMOJI) EMOJIS[key] || default end |