class Dotfiler::Dotfile
Attributes
link[R]
name[R]
path[R]
Public Class Methods
new(name:, link:, path:)
click to toggle source
# File lib/dotfiler/dotfile.rb, line 5 def initialize(name:, link:, path:) @name = name to_path = Dotfiler.resolve["to_path"] @link = to_path.(link) @path = to_path.(path) end
Public Instance Methods
to_h()
click to toggle source
# File lib/dotfiler/dotfile.rb, line 14 def to_h { name: name, link: link.to_s, path: path.to_s } end