Sha256: d68a99c1c2ac6bb442fa6e44db59b3951cb53db1c49a90c22e54a0180ccb89b1

Contents?: true

Size: 362 Bytes

Versions: 5

Compression:

Stored size: 362 Bytes

Contents

require 'facets/opesc'

class Object

  # This will automatically load (most) core methods
  # if they are not present when called.

  def method_missing(methodname, *a, &b)
    methodname = OpEsc.escape(methodname)
    begin
      require "facets/#{class}/#{methodname}"
      __send__(methodname, *a, &b)
    rescue LoadError
      super
    end  
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
facets-2.8.4 lib/core/facets-live.rb
facets-2.8.3 lib/core/facets-live.rb
facets-2.8.2 lib/core/facets-live.rb
facets-2.8.1 lib/core/facets-live.rb
facets-2.8.0 lib/core/facets-live.rb