Sha256: a0f264d0f5bdc609a23bdda6ddeb87146350e7b133e94d9cfb6e93b0e54c4a0f

Contents?: true

Size: 263 Bytes

Versions: 7

Compression:

Stored size: 263 Bytes

Contents

module Kernel
  alias fn lambda
end

class Object
  def meta_class
    class << self; self; end
  end
  
  def __calling_method__
    caller[1][/`(.*)'$/, 1].to_sym
  end
end

def ARGV.option(name)
  ARGV.map {|arg| arg =~/--#{name}=(.*)$/; $1}.compact.first
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
redcar-0.3.4.3 lib/redcar/ruby_extensions.rb
redcar-0.3.4.2 lib/redcar/ruby_extensions.rb
redcar-0.3.4.1 lib/redcar/ruby_extensions.rb
redcar-0.3.4 lib/redcar/ruby_extensions.rb
redcar-0.3.3 lib/redcar/ruby_extensions.rb
redcar-0.3.2dev lib/redcar/ruby_extensions.rb
redcar-0.3.1dev lib/redcar/ruby_extensions.rb