| Class | Ribs::Rib::RibColumn |
| In: |
lib/ribs/rib.rb
|
| Parent: | Object |
The proxy object returned when a property name is used in a call to Rib without any parameters.
Sets the name and all the reference values
# File lib/ribs/rib.rb, line 9
9: def initialize(name, columns, primary_keys, to_avoid, default_values)
10: @name, @columns, @primary_keys, @to_avoid, @default_values =
11: name.to_s, columns, primary_keys, to_avoid, default_values
12: end
This name should be avoided in the database
# File lib/ribs/rib.rb, line 20
20: def avoid!
21: @to_avoid << @name.downcase
22: end
This name is mapped to a specific column
# File lib/ribs/rib.rb, line 25
25: def column=(col)
26: @columns[@name] = [col.to_s, {}]
27: end