Sha256: 37ba1023da59708f7f539eda92e97a4afc770374aacd76ec6d8707a78570e0b7

Contents?: true

Size: 228 Bytes

Versions: 6

Compression:

Stored size: 228 Bytes

Contents

module Kernel

  # Outputs the file, line and current method.
  #
  #   caller(1).first
  #   "/usr/lib/ruby/1.8/irb/workspace.rb:52:in `irb_binding'"
  #
  # CREDIT: William Mason
  def __HERE__
    caller(1).first
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
facets-2.8.4 lib/core/facets/kernel/__here__.rb
facets-2.8.3 lib/core/facets/kernel/__here__.rb
facets-2.8.2 lib/core/facets/kernel/__here__.rb
facets-2.8.1 lib/core/facets/kernel/__here__.rb
facets-2.8.0 lib/core/facets/kernel/__here__.rb
facets-2.7.0 lib/core/facets/kernel/__here__.rb