Sha256: 6463821b33289afcf0a6d3b0575253fdf4c65941f00283b329ea0a606601282b
Contents?: true
Size: 310 Bytes
Versions: 2
Compression:
Stored size: 310 Bytes
Contents
module Puffer class Fields < Array def field *args push Field.new(*args) end def searchable @searchable ||= reject { |f| ![:text, :string, :integer, :decimal, :float].include? f.type } end def boolean @boolean ||= reject { |f| f.type != :boolean } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puffer-0.0.5 | lib/puffer/fields.rb |
puffer-0.0.4 | lib/puffer/fields.rb |