Sha256: b6b8e0cde68ea76de996d4c8e34ac7ddd937f1849b8cf8c99f138a795dd87d6a

Contents?: true

Size: 215 Bytes

Versions: 7

Compression:

Stored size: 215 Bytes

Contents

# in Fancy we use the BlockEnvironment as Block
Block = Rubinius::BlockEnvironment

class Block
  # call without arguments
  alias_method :":call", :call

  define_method("call:") do |args|
    call *args
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fancy-0.10.0 boot/fancy_ext/block_env.rb
fancy-0.9.0 boot/fancy_ext/block_env.rb
fancy-0.8.0 boot/fancy_ext/block_env.rb
fancy-0.7.0 boot/fancy_ext/block_env.rb
fancy-0.6.0 boot/fancy_ext/block_env.rb
fancy-0.5.0 boot/fancy_ext/block_env.rb
fancy-0.4.0 boot/fancy_ext/block_env.rb