Module: Sprockets

Defined in:
lib/sprockets.rb,
lib/sprockets/error.rb,
lib/sprockets/version.rb,
lib/sprockets/pathname.rb,
lib/sprockets/secretary.rb,
lib/sprockets/environment.rb,
lib/sprockets/source_file.rb,
lib/sprockets/source_line.rb,
lib/sprockets/preprocessor.rb,
lib/sprockets/concatenation.rb

Defined Under Namespace

Modules: Version Classes: Concatenation, Environment, Error, LoadError, Pathname, Preprocessor, Secretary, SourceFile, SourceLine, UndefinedConstantError

Class Method Summary collapse

Class Method Details

.absolute?(location) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/sprockets.rb', line 12

def absolute?(location)
  same_when_expanded?(location) || platform_absolute_path?(location)
end

.running_on_windows?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/sprockets.rb', line 8

def running_on_windows?
  RUBY_PLATFORM =~ /(win|w)32$/
end