Sha256: 5dd4e68d68aed00a9efc7cd710efe1da6f0c7941bf38c3f425a356946a50acc7
Contents?: true
Size: 678 Bytes
Versions: 1
Compression:
Stored size: 678 Bytes
Contents
require 'nano/kernel/require_esc' module Kernel private # Just like #require_esc excapt that # it provides the initial 'nano/' path. # # require_facet 'string/capitalized?' # # _is the same as_ # # require_esc 'nano/string/capitalized?' # def require_facet( fpath ) require_esc( "nano/#{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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-0.9.0 | lib/nano/kernel/require_facet.rb |