Sha256: a2d05800adc3c80017229a6e4992b623d7b6f33d28dbe263f19f9932fd63dabe
Contents?: true
Size: 518 Bytes
Versions: 2
Compression:
Stored size: 518 Bytes
Contents
module Guise module Options def extract_guise_options(names, options) @@guise_options = { :association => options.delete(:association) || :guises, :attribute => options.delete(:attribute) || :title, :names => names } return @@guise_options, options end def guises @@guise_options[:names] end def guise_association @@guise_options[:association] end def guise_attribute @@guise_options[:attribute] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
guise-0.2.3 | lib/guise/options.rb |
guise-0.2.0 | lib/guise/options.rb |