Sha256: e690e0e3cf497f2d3c2799f43d8e955c39f2b19a49c2ffe6298c65d275f1638b

Contents?: true

Size: 303 Bytes

Versions: 35

Compression:

Stored size: 303 Bytes

Contents

class NameDisplay
  def run(args, options)
    return display_name('') if options.delete

    return say('invalid customer name') if args.empty?

    display_name(args.join(' '))
  end

  def display_name(name)
    puts "TODO: display #{name}"
  end

  def delete_current
    display_name('')
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
renuo-cli-3.1.0 lib/renuo/cli/app/name_display.rb
renuo-cli-3.0.0 lib/renuo/cli/app/name_display.rb
renuo-cli-2.0.0 lib/renuo/cli/app/name_display.rb
renuo-cli-1.8.0 lib/renuo/cli/app/name_display.rb
renuo-cli-1.7.3 lib/renuo/cli/app/name_display.rb
renuo-cli-1.7.2 lib/renuo/cli/app/name_display.rb
renuo-cli-1.7.1 lib/renuo/cli/app/name_display.rb
renuo-cli-1.7.0 lib/renuo/cli/app/name_display.rb
renuo-cli-1.6.0 lib/renuo/cli/app/name_display.rb
renuo-cli-1.5.0 lib/renuo/cli/app/name_display.rb
renuo-cli-1.4.4 lib/renuo/cli/app/name_display.rb
renuo-cli-1.4.3 lib/renuo/cli/app/name_display.rb
renuo-cli-1.4.2 lib/renuo/cli/app/name_display.rb
renuo-cli-1.4.1 lib/renuo/cli/app/name_display.rb
renuo-cli-1.4.0 lib/renuo/cli/app/name_display.rb
renuo-cli-1.3.1 lib/renuo/cli/app/name_display.rb
renuo-cli-1.3.0 lib/renuo/cli/app/name_display.rb
renuo-cli-1.2.1 lib/renuo/cli/app/name_display.rb
renuo-cli-1.2.0 lib/renuo/cli/app/name_display.rb
renuo-cli-1.1.0 lib/renuo/cli/app/name_display.rb