Sha256: 7645a32790ef9eb159442e40022c4364867b859db0cf0e0b978b0bc0e0adbd4c
Contents?: true
Size: 694 Bytes
Versions: 10
Compression:
Stored size: 694 Bytes
Contents
require 'selectable' ## Can tag Strings a = TaggableString.new("stella") a.add_tags :type => :metric, :title => "Metric" a.tag_values #=> [:metric, "Metric"] ## Can filter Array with full tags a = SelectableArray.new a << TaggableString.new("stella1", :type => :metric) a << TaggableString.new("stella2", :type => :metric) a << TaggableString.new("stella3", :type => :log) a.filter(:type => :metric) #=> ["stella1", "stella2"] ## Can filter Array with just values a = SelectableArray.new a << TaggableString.new("stella1", :type => :metric) a << TaggableString.new("stella2", :type => :metric) a << TaggableString.new("stella3", :type => :log) a.filter(:metric) #=> ["stella1", "stella2"]
Version data entries
10 entries across 10 versions & 1 rubygems