Class: Tagfinder::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/tagfinder.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/tagfinder.rb', line 12

def self.exit_on_failure?
  true
end

Instance Method Details

#find(url, text) ⇒ Object



17
18
19
20
# File 'lib/tagfinder.rb', line 17

def find(url, text)
  find_command = Find.new(url, text)
  find_command.execute()
end