Methods

Class/Module Index [+]

Quicksearch

HammerCLI::Output::Formatters::KeyValueFormatter

Public Instance Methods

format(params, field_params={}) click to toggle source
# File lib/hammer_cli/output/formatters.rb, line 118
def format(params, field_params={})
  if params.is_a? Hash
    name = params[:name] || params["name"]
    value = params[:value] || params["value"]
    "#{name} => #{value}"
  else
    ""
  end
end
tags() click to toggle source
# File lib/hammer_cli/output/formatters.rb, line 114
def tags
  [:screen, :flat]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.