Logo
Explore Help
Sign In
admin/brew
1
0
Fork 0
You've already forked brew
Code Issues Packages Projects Releases 6 Wiki Activity
brew/Library/Homebrew/emoji.rb

14 lines
204 B
Ruby
Raw Normal View History

Add frozen_string_literal to all files.
2019-04-19 15:38:03 +09:00
# frozen_string_literal: true
emoji: extract logic into generic OS classes. (#450)
2016-07-09 13:51:43 +01:00
module Emoji
class << self
def install_badge
emoji: remove hack required for Ruby 1.8.7 Since this hack is no longer required, and `Emoji.tick` and `.cross` are only called in one place, I think it's better to just inline them there rather than having methods on `Emoji` that just return a one-character String.
2017-01-20 12:27:49 +00:00
ENV["HOMEBREW_INSTALL_BADGE"] || "🍺"
emoji: extract logic into generic OS classes. (#450)
2016-07-09 13:51:43 +01:00
end
def enabled?
!ENV["HOMEBREW_NO_EMOJI"]
end
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 443ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API