Skip to content

Commit

Permalink
simplify Class#forwards_unary_ruby_methods
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkdoor committed Oct 19, 2013
1 parent 9d77772 commit 41f4978
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/rbx/class.fy
Expand Up @@ -209,9 +209,7 @@ class Class {
Creates ruby_alias methods for any unary ruby methods of a class.
"""

instance_methods select() |m| {
m =~(/^[a-z]+/)
} select() |m| {
instance_methods grep(/^[a-z]+/) select() |m| {
instance_method(m) arity() == 0
} each() |m| {
ruby_alias: m
Expand Down

0 comments on commit 41f4978

Please sign in to comment.