Guest User

Untitled

a guest
Jul 18th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. def mix(s1, s2, s3, &block)
  2. name = "#{s1.to_s}_#{s2.to_s}_#{s3.to_s}".to_sym
  3. self.send(name) {|a,b| send(s1, send(s2,a), send(s3,b))}
  4. end
Add Comment
Please, Sign In to add comment