Sha256: eb16fe95377ce1ad8e4dfa2f4b45aedb0ecd5531430a2d790c3eaf3eda90e0e1
Contents?: true
Size: 340 Bytes
Versions: 1
Compression:
Stored size: 340 Bytes
Contents
# encoding: utf-8 # Enumerable module Enumerable # alias of map {|v|send :some_kernel_method, v} # # === Example # # [*1..3].kernel_send:Rational # => [(1/1), (2/1), (3/1)] # def kernel_send(method_name) return self unless [Symbol, String].include? method_name.class map { |v|send method_name.to_sym, v } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tbpgr_utils-0.0.151 | lib/open_classes/enumerable/kernel_send.rb |