module Selfish
Constants
- VERSION
Public Instance Methods
_self()
click to toggle source
# File lib/selfish/core.rb, line 10 def _self self end
selfish(*a, &b)
click to toggle source
# File lib/selfish/core.rb, line 4 def selfish(*a, &b) if !a.empty? && !b b = a.shift.to_proc end proc {|_, *arg| _.instance_exec(*a, *arg, &b)} end