Sha256: 0e5dc5b62c9d7c4f780a77cb2709d1ac81cf7ca85faa59dabcae8a42cae8da74
Contents?: true
Size: 682 Bytes
Versions: 9
Compression:
Stored size: 682 Bytes
Contents
require 'facet/kernel/require_esc' module Kernel private # Just like #require_esc excapt that # it provides the initial 'facet/' path. # # require_facet 'string/capitalized?' # # _is the same as_ # # require_esc 'facet/string/capitalized?' # def require_facet( fpath ) require_esc( "facet/#{fpath}" ) end end # _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # =begin test require 'test/unit' class TCKernel < Test::Unit::TestCase def test_require_facet assert_nothing_raised { require_facet 'string/margin' } assert( "".respond_to?( :margin ) ) end end =end
Version data entries
9 entries across 9 versions & 1 rubygems