Module: Slashjoin

Defined in:
lib/slashjoin/uri.rb,
lib/slashjoin/class.rb,
lib/slashjoin/string.rb,
lib/slashjoin/nopatch.rb,
lib/slashjoin/version.rb,
lib/slashjoin/pathname.rb,
lib/slashjoin/use_pathname.rb

Defined Under Namespace

Modules: Pathname, String, URI

Constant Summary collapse

VERSION =
"0.0.2.2"
@@no_patch =
false
@@use_pathname =
false

Class Method Summary collapse

Class Method Details

.already_loaded?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/slashjoin/class.rb', line 35

def self.already_loaded?
  loaded_classes.any?
end

.loaded_classesHash

Returns:

  • (Hash)


30
31
32
# File 'lib/slashjoin/class.rb', line 30

def self.loaded_classes
  @@loaded_classes ||= {}
end

.no_patchSlashjoin

Returns:



8
9
10
11
# File 'lib/slashjoin/class.rb', line 8

def self.no_patch
  @@no_patch = true
  return self
end

.no_patch?Boolean

return [Boolean]

Returns:

  • (Boolean)


14
15
16
# File 'lib/slashjoin/class.rb', line 14

def self.no_patch?
  @@no_patch
end

.patchingSlashjoin

Returns:



40
41
42
43
# File 'lib/slashjoin/class.rb', line 40

def self.patching
  require 'slashjoin/patching'
  return self
end

.use_pathnameSlashjoin

Returns:



19
20
21
22
# File 'lib/slashjoin/class.rb', line 19

def self.use_pathname
  @@user_pathname = true
  return self
end

.use_pathname?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/slashjoin/class.rb', line 25

def self.use_pathname?
  @@use_pathname
end