Class: Yearbook::CLI
- Inherits:
-
Thor
- Object
- Thor
- Yearbook::CLI
- Defined in:
- lib/yearbook/cli.rb
Instance Method Summary collapse
Instance Method Details
#face(path, outpath = nil) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/yearbook/cli.rb', line 14 def face(path, outpath=nil) fpath = File.(path) @image = Image.new(fpath) outpath ||= path.sub(/(?=\.\w*$)/, '-face') # eh overwrite it anyway @image.clip_and_print_best_face(outpath) end |
#hello(from) ⇒ Object
6 7 8 |
# File 'lib/yearbook/cli.rb', line 6 def hello(from) puts "Hello world, from: #{from}" end |