Module: Checky::Validators::Binary

Defined in:
lib/checky/validators/binary.rb

Instance Method Summary collapse

Instance Method Details

#checkObject



10
11
12
# File 'lib/checky/validators/binary.rb', line 10

def check
  !storage.binary.empty?
end

#message(value) ⇒ Object

:reek:UtilityFunction



15
16
17
# File 'lib/checky/validators/binary.rb', line 15

def message(value)
  "Checking for #{File.basename(value)}"
end

#populate(command) ⇒ Object

:reek:UtilityFunction



6
7
8
# File 'lib/checky/validators/binary.rb', line 6

def populate(command)
  command.which.to_s
end