class Ahnnotate::ForeignKey
Attributes
from_column[RW]
name[RW]
to_column[RW]
to_table[RW]
Public Class Methods
new(**args)
click to toggle source
# File lib/ahnnotate/foreign_key.rb, line 8 def initialize(**args) args.each do |key, value| public_send("#{key}=", value) end end
Public Instance Methods
from()
click to toggle source
# File lib/ahnnotate/foreign_key.rb, line 14 def from from_column end
to()
click to toggle source
# File lib/ahnnotate/foreign_key.rb, line 18 def to "#{to_table}##{to_column}" end