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-0.2.0 lib/renuo/cli/app/name_display.rb
renuo-cli-0.1.2 lib/renuo/cli/app/name_display.rb
renuo-cli-0.1.1 lib/renuo/cli/app/name_display.rb
renuo-cli-0.0.13 lib/renuo/cli/app/name_display.rb
renuo-cli-0.0.12 lib/renuo/cli/app/name_display.rb
renuo-cli-0.0.11 lib/renuo/cli/app/name_display.rb
renuo-cli-0.0.10 lib/renuo/cli/app/name_display.rb
renuo-cli-0.0.9 lib/renuo/cli/app/name_display.rb
renuo-cli-0.0.8 lib/renuo/cli/app/name_display.rb
renuo-cli-0.0.7 lib/renuo/cli/app/name_display.rb
renuo-cli-0.0.6 lib/renuo/cli/app/name_display.rb
renuo-cli-0.0.5 lib/renuo/cli/app/name_display.rb
renuo-cli-0.0.4 lib/renuo/cli/app/name_display.rb
renuo-cli-0.0.3 lib/renuo/cli/app/name_display.rb
renuo-cli-0.0.2 lib/renuo/cli/app/name_display.rb