class SetUpDevelopment::Installer
Attributes
check_installation_proc[RW]
install_proc[RW]
Public Class Methods
new(check_installation_proc, install_proc)
click to toggle source
# File lib/set_up_development/installer.rb, line 6 def initialize(check_installation_proc, install_proc) self.check_installation_proc = check_installation_proc self.install_proc = install_proc end
Public Instance Methods
install!(name)
click to toggle source
# File lib/set_up_development/installer.rb, line 15 def install!(name) install_proc.call(name) end
installed?(name)
click to toggle source
# File lib/set_up_development/installer.rb, line 11 def installed?(name) check_installation_proc.call(name) end