Method: Dotbox::File#initialize
- Defined in:
- lib/dotbox/file.rb
#initialize(path) ⇒ File
Returns a new instance of File.
10 11 12 13 |
# File 'lib/dotbox/file.rb', line 10 def initialize(path) @abs_path = ::File.(path) @rel_path = @abs_path.sub(/^#{Thor::Util.user_home}\//, '') end |