Class: HammerCLI::Output::Formatters::FieldFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/hammer_cli/output/formatters.rb

Overview

abstract formatter

Instance Method Summary collapse

Instance Method Details

#format(data, field_params = {}) ⇒ Object



46
47
48
# File 'lib/hammer_cli/output/formatters.rb', line 46

def format(data, field_params={})
  data
end

#match?(other_tags) ⇒ Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/hammer_cli/output/formatters.rb', line 42

def match?(other_tags)
  tags & other_tags == tags
end

#tagsObject



38
39
40
# File 'lib/hammer_cli/output/formatters.rb', line 38

def tags
  []
end