class Guard::Sorbet
Public Class Methods
new(options = nil)
click to toggle source
Calls superclass method
# File lib/guard/sorbet.rb, line 11 def initialize(options = nil) super(options) @version = T.let('0.0.1', String) @sorbet_version = T.let(Gem.loaded_specs['sorbet'].version.to_s, String) end
Public Instance Methods
run_all()
click to toggle source
# File lib/guard/sorbet.rb, line 19 def run_all Compat::UI.info "Guard::Sorbet #{@version} is running, with Sorbet #{@sorbet_version}" srb_path = Gem.bin_path 'sorbet', 'srb' if !system(srb_path) Compat::UI.error "srb failed" throw :task_has_failed end end
run_on_modifications(_)
click to toggle source
# File lib/guard/sorbet.rb, line 34 def run_on_modifications(_) run_all end
start()
click to toggle source
# File lib/guard/sorbet.rb, line 29 def start run_all end