class Rodot::Application

Attributes

dotfiles[RW]
name[RW]

Public Class Methods

new(name = nil, dotfiles = []) click to toggle source
# File lib/rodot/application.rb, line 6
def initialize(name = nil, dotfiles = [])
  @name = name
  @dotfiles = dotfiles
end

Public Instance Methods

invalid?() click to toggle source
# File lib/rodot/application.rb, line 11
def invalid?
  @name.nil? || @dotfiles.empty?
end
to_hash() click to toggle source
# File lib/rodot/application.rb, line 15
def to_hash
  { 'name' => @name, 'dotfiles' => @dotfiles }
end