Class/Module Index [+]

Quicksearch

HammerCLI::Options::Normalizers::EnumList

Public Class Methods

new(allowed_values) click to toggle source
# File lib/hammer_cli/options/normalizers.rb, line 209
def initialize(allowed_values)
  @allowed_values = allowed_values
end

Public Instance Methods

complete(value) click to toggle source
# File lib/hammer_cli/options/normalizers.rb, line 221
def complete(value)
  Completer::finalize_completions(@allowed_values)
end
description() click to toggle source
# File lib/hammer_cli/options/normalizers.rb, line 213
def description
  _("Any combination (comma separated list) of '%s'") % quoted_values
end
format(value) click to toggle source
# File lib/hammer_cli/options/normalizers.rb, line 217
def format(value)
  value.is_a?(String) ? parse(value) : []
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.