Sha256: a51e012bf06991f7780e4b1d00ce179e93ca9f8d7606235debf811c9612d8aec

Contents?: true

Size: 185 Bytes

Versions: 38

Compression:

Stored size: 185 Bytes

Contents

class Symbol
  # Does exactly what the activesupport version does,
  # with pretty much the same code.
  def to_proc
    Proc.new { |*args| args.shift.__send__(self, *args) }
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
darkhelmet-darkext-0.7.2 lib/darkext/symbol.rb
darkhelmet-darkext-0.7.3 lib/darkext/symbol.rb
darkhelmet-darkext-0.8.0 lib/darkext/symbol.rb
darkhelmet-darkext-0.8.1 lib/darkext/symbol.rb
darkhelmet-darkext-0.8.2 lib/darkext/symbol.rb
darkhelmet-darkext-0.8.3 lib/darkext/symbol.rb
darkhelmet-darkext-0.8.4 lib/darkext/symbol.rb
darkhelmet-darkext-0.8.5 lib/darkext/symbol.rb
darkhelmet-darkext-0.8.6 lib/darkext/symbol.rb
darkhelmet-darkext-0.8.7 lib/darkext/symbol.rb
darkhelmet-darkext-0.9.0 lib/darkext/symbol.rb
darkhelmet-darkext-0.9.2 lib/darkext/symbol.rb
darkhelmet-darkext-0.9.3 lib/darkext/symbol.rb
darkhelmet-darkext-0.9.4 lib/darkext/symbol.rb
darkhelmet-darkext-0.9.5 lib/darkext/symbol.rb
darkhelmet-darkext-0.9.6 lib/darkext/symbol.rb
darkhelmet-darkext-0.9.7 lib/darkext/symbol.rb
darkext-0.12.0 lib/darkext/symbol.rb