Skip to content
Open

📯 #13

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions lib/active_emoji/core_ext/array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ class Array
alias 🔁 each
alias 🍀 sample
alias 🎰 shuffle
alias 👈 push
alias 🍕 slice
alias 🈳❓ empty?
end
3 changes: 3 additions & 0 deletions lib/active_emoji/core_ext/enumerable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ module Enumerable
alias 🔎 find
alias 💉 inject
alias 😴 lazy
alias 📍 map
alias 🔄 reverse_each
alias ✊ take
alias 🈶❓ any?
alias 🈚️❓ none?
end
2 changes: 2 additions & 0 deletions lib/active_emoji/core_ext/integer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ class Integer
alias ▶️ next
alias ◀️ pred
alias ❌ times
alias 👆 upto
alias 👇 downto
end
4 changes: 4 additions & 0 deletions lib/active_emoji/core_ext/io.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
class IO
class << self
alias 📖 open
end

alias 🚽 flush
end
1 change: 1 addition & 0 deletions lib/active_emoji/core_ext/kernel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ module Kernel
alias 💻 system
alias ⚠️ warn
def 🔟; 10 end
def 💯; 100 end
end
4 changes: 4 additions & 0 deletions lib/active_emoji/core_ext/mutex.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class Mutex
alias 🔒 lock
alias 🔓 unlock
end
5 changes: 5 additions & 0 deletions lib/active_emoji/core_ext/numeric.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
🔢 = Numeric

class 🔢
alias 🚶 step
end
2 changes: 2 additions & 0 deletions lib/active_emoji/core_ext/object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ class Object
alias :"#️⃣" hash
alias 🔬 inspect
alias 🆔 object_id
alias ✉️ send
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why GH doesn't display "letter" correctly :(.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the problem is your web browser. Are you using Chrome?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, Firefox, Chrome is completely broken, Safari does things the right way. Thanks for the hint!

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few different options for envelopes and outboxes with arrows pointing in different directions:

📧 📨 📤 📮

Another route would be something a bit more comical. Since send is typically used to invoke private methods. I think this one implies “throwing caution to the wind”:

💸

Another thing to consider is how/if we want to represent public_send versus send. Maybe I’m taking this too seriously but I believe we should think this through before merging. Ideally there would be some interplay between these two representations.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to go another round and ❤️ the discussion. I haven't picked the symbols just at whim though. I like how 📬 holds the 📧 icon and has a flag indicating that it got mail.

I rarely use send to circumvent private, tbh...

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I rarely use send to circumvent private, tbh...

Then you should use public_send to be safe. 😉

alias 📬❓ respond_to?
end
1 change: 1 addition & 0 deletions lib/active_emoji/core_ext/proc.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
class Proc
alias 📞 call
alias 🍛 curry
end