Class: DotfilesInstaller::Base
- Inherits:
-
Object
- Object
- DotfilesInstaller::Base
- Includes:
- Utilities
- Defined in:
- lib/dotfiles_installer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#homedir ⇒ Object
readonly
Returns the value of attribute homedir.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#sourcedir ⇒ Object
readonly
Returns the value of attribute sourcedir.
Instance Method Summary collapse
-
#initialize(sourcedir, *args) ⇒ Base
constructor
A new instance of Base.
Methods included from Utilities
Constructor Details
#initialize(sourcedir, *args) ⇒ Base
Returns a new instance of Base.
46 47 48 49 50 |
# File 'lib/dotfiles_installer.rb', line 46 def initialize(sourcedir, *args) @sourcedir = sourcedir @options = args.last.kind_of?(::Hash) ? args.pop : {} @homedir = args.pop || ENV["HOME"] end |
Instance Attribute Details
#homedir ⇒ Object (readonly)
Returns the value of attribute homedir.
44 45 46 |
# File 'lib/dotfiles_installer.rb', line 44 def homedir @homedir end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
44 45 46 |
# File 'lib/dotfiles_installer.rb', line 44 def @options end |
#sourcedir ⇒ Object (readonly)
Returns the value of attribute sourcedir.
44 45 46 |
# File 'lib/dotfiles_installer.rb', line 44 def sourcedir @sourcedir end |