Sha256: f6397811a153cd74e468c397f283b3356ed39155239db72a703de92bafd551f7
Contents?: true
Size: 519 Bytes
Versions: 3
Compression:
Stored size: 519 Bytes
Contents
module Spigot module Map class Option def initialize(&block) @conditions = [] instance_eval(&block) if block_given? end def primary_key(key=nil) return @primary_key if key.nil? @primary_key = key end def foreign_key(key=nil) return @foreign_key if key.nil? @foreign_key = key end def conditions(attributes=nil) return @attributes if attributes.nil? @conditions = attributes end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spigot-0.2.2 | lib/spigot/map/option.rb |
spigot-0.2.1 | lib/spigot/map/option.rb |
spigot-0.2.0 | lib/spigot/map/option.rb |