class Ahnnotate::Index

Attributes

columns[RW]
comment[RW]
name[RW]
unique[RW]

Public Class Methods

new(**args) click to toggle source
# File lib/ahnnotate/index.rb, line 8
def initialize(**args)
  args.each do |key, value|
    public_send("#{key}=", value)
  end
end

Public Instance Methods

presentable_columns() click to toggle source
# File lib/ahnnotate/index.rb, line 14
def presentable_columns
  "(#{columns.join(", ")})"
end
presentable_unique() click to toggle source
# File lib/ahnnotate/index.rb, line 18
def presentable_unique
  if unique
    "UNIQUE"
  else
    ""
  end
end