Sha256: f403d073e46bd4e4bd121a355c1539e2ee760712445b3fd27bbd3cf9978e0b1d
Contents?: true
Size: 492 Bytes
Versions: 5
Compression:
Stored size: 492 Bytes
Contents
# -*- encoding : utf-8 -*- class Symbol include LambdaDriver::Callable include LambdaDriver::Composable include LambdaDriver::WithArgs include LambdaDriver::Flipable include LambdaDriver::ProcConvertable include LambdaDriver::Currying include LambdaDriver::Liftable def to_method lambda{|obj| obj._(self) } end alias_method :-@, :to_method def to_method_with_args(*args) lambda{|obj| obj._(self).call(*args) } end alias_method :&, :to_method_with_args end
Version data entries
5 entries across 5 versions & 1 rubygems