class Symbol
Public Instance Methods
+@()
click to toggle source
# File lib/expendables/symbol/to_proc_with_args.rb, line 2 def +@ self.to_proc end
compose(o)
click to toggle source
# File lib/expendables/symbol/compose.rb, line 2 def compose o -> *args { (+o).call((+self).call(*args)) } end
Also aliased as: >>
to_proc(*static_args, &static_block)
Also aliased as: [], to_proc_without_args
Alias for: to_proc_with_args
to_proc_with_args(*static_args, &static_block)
click to toggle source
# File lib/expendables/symbol/to_proc_with_args.rb, line 6 def to_proc_with_args(*static_args, &static_block) Proc.new do |*proc_args, &proc_block| receiver = proc_args.shift block = (+static_block >> +proc_block) to_proc_without_args.call(receiver, *static_args, *proc_args, &block) end end
Also aliased as: to_proc