Module: Schema::Fixtures::Attribute

Defined in:
lib/schema/fixtures/attribute.rb

Class Method Summary collapse

Class Method Details

.printed_name(entry) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/schema/fixtures/attribute.rb', line 4

def self.printed_name(entry)
  control_name = entry.control_name
  compare_name = entry.compare_name

  if control_name == compare_name
    return control_name.to_s
  else
    return "#{control_name} => #{compare_name}"
  end
end