Module: TerraspaceBundler::Mod::Concerns::LocalConcern

Included in:
TerraspaceBundler::Mod, Props::Typer
Defined in:
lib/terraspace_bundler/mod/concerns/local_concern.rb

Instance Method Summary collapse

Instance Method Details

#local?Boolean

Returns:

  • (Boolean)


3
4
5
6
7
8
# File 'lib/terraspace_bundler/mod/concerns/local_concern.rb', line 3

def local?
  source.starts_with?("/")  ||
  source.starts_with?(".")  ||
  source.starts_with?("..") ||
  source.starts_with?("~")
end