Class: Skyscraper::Path::Local
- Defined in:
- lib/skyscraper/path/local.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#folder ⇒ Object
Returns the value of attribute folder.
-
#full_path ⇒ Object
Returns the value of attribute full_path.
Instance Method Summary collapse
- #full_path_for(href) ⇒ Object
-
#initialize(path) ⇒ Local
constructor
A new instance of Local.
- #to_s ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(path) ⇒ Local
Returns a new instance of Local.
6 7 8 9 10 11 |
# File 'lib/skyscraper/path/local.rb', line 6 def initialize path @folder = get_folder(path) @full_path = path @file_name = get_file_name(path) @base = @folder end |
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base.
4 5 6 |
# File 'lib/skyscraper/path/local.rb', line 4 def base @base end |
#file_name ⇒ Object
Returns the value of attribute file_name.
4 5 6 |
# File 'lib/skyscraper/path/local.rb', line 4 def file_name @file_name end |
#folder ⇒ Object
Returns the value of attribute folder.
4 5 6 |
# File 'lib/skyscraper/path/local.rb', line 4 def folder @folder end |
#full_path ⇒ Object
Returns the value of attribute full_path.
4 5 6 |
# File 'lib/skyscraper/path/local.rb', line 4 def full_path @full_path end |