Class: Skyscraper::Path::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/skyscraper/path/base.rb

Direct Known Subclasses

Local, Remote

Instance Method Summary collapse

Instance Method Details

#local?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/skyscraper/path/base.rb', line 8

def local?
  self.is_a? Skyscraper::Path::Local
end

#path_for(path) ⇒ Object



4
5
6
# File 'lib/skyscraper/path/base.rb', line 4

def path_for path
  Path::factory(self.full_path_for(path))
end

#remote?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/skyscraper/path/base.rb', line 12

def remote?
  self.is_a? Skyscraper::Path::Remote
end