Sha256: 428e9909c6e813a844cf00dd33f8c544c8cda70612cdeefe5722a0f8181cabfe

Contents?: true

Size: 147 Bytes

Versions: 10

Compression:

Stored size: 147 Bytes

Contents

class Symbol  
  # ["foo", "bar"].map &:reverse #=> ['oof', 'rab']
  def to_proc
     Proc.new{|*args| args.shift.__send__(self, *args)}
   end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
merb-0.3.4 lib/merb/core_ext/merb_symbol.rb
merb-0.3.7 lib/merb/core_ext/merb_symbol.rb
merb-0.3.3 lib/merb/core_ext/merb_symbol.rb
merb-0.4.1 lib/merb/core_ext/symbol.rb
merb-0.4.0 lib/merb/core_ext/symbol.rb
merb-0.4.2 lib/merb/core_ext/symbol.rb
merb-0.5.0 lib/merb/core_ext/symbol.rb
merb-0.5.1 lib/merb/core_ext/symbol.rb
merb-0.5.3 lib/merb/core_ext/symbol.rb
merb-0.5.2 lib/merb/core_ext/symbol.rb