Apply PIE to nghttpx
[platform/upstream/nghttp2.git] / third-party / mruby / mrbgems / mruby-method / mrblib / method.rb
1 class Method
2   def to_proc
3     m = self
4     lambda { |*args, &b|
5       m.call(*args, &b)
6     }
7   end
8
9   def owner
10     @owner
11   end
12
13   def receiver
14     @recv
15   end
16
17   def name
18     @name
19   end
20
21   def <<(other)
22     ->(*args, &block) { call(other.call(*args, &block)) }
23   end
24
25   def >>(other)
26     ->(*args, &block) { other.call(call(*args, &block)) }
27   end
28 end