Class: Symbol
Constant Summary
Constants included from Enumerable
Enumerable::MOST_EXTREME_OBJECT_EVER
Instance Method Summary collapse
-
#to_proc ⇒ Object
Standard in ruby 1.9.
Methods included from Enumerable
#count, #cycle, #drop, #drop_while, #each_with_index_with_optional_args_and_block, #each_with_object, #find_index, #first, #group_by, #inject_with_symbol, #max_by, #min_by, #minmax, #minmax_by, #none?, #one?, #reverse_each, #sum, #take, #take_while, #to_a_with_optional_arguments
Instance Method Details
#to_proc ⇒ Object
Standard in ruby 1.9. See official documentation
3 4 5 |
# File 'lib/backports/symbol.rb', line 3 def to_proc Proc.new { |*args| args.shift.__send__(self, *args) } end |