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.10.0 lib/darkext/symbol.rb
darkhelmet-darkext-0.11.0 lib/darkext/symbol.rb
darkhelmet-darkext-0.11.1 lib/darkext/symbol.rb
darkhelmet-darkext-0.11.2 lib/darkext/symbol.rb
darkhelmet-darkext-0.12.0 lib/darkext/symbol.rb
darkhelmet-darkext-0.3.2 lib/darkext/symbol.rb
darkhelmet-darkext-0.4.0 lib/darkext/symbol.rb
darkhelmet-darkext-0.4.1 lib/darkext/symbol.rb
darkhelmet-darkext-0.4.2 lib/darkext/symbol.rb
darkhelmet-darkext-0.4.3 lib/darkext/symbol.rb
darkhelmet-darkext-0.5.0 lib/darkext/symbol.rb
darkhelmet-darkext-0.5.1 lib/darkext/symbol.rb
darkhelmet-darkext-0.5.2 lib/darkext/symbol.rb
darkhelmet-darkext-0.5.3 lib/darkext/symbol.rb
darkhelmet-darkext-0.5.4 lib/darkext/symbol.rb
darkhelmet-darkext-0.5.5 lib/darkext/symbol.rb
darkhelmet-darkext-0.5.6 lib/darkext/symbol.rb
darkhelmet-darkext-0.6.0 lib/darkext/symbol.rb
darkhelmet-darkext-0.7.0 lib/darkext/symbol.rb
darkhelmet-darkext-0.7.1 lib/darkext/symbol.rb