class Dogcatcher::TagSet
A collection of tags
Public Instance Methods
compile()
click to toggle source
Returns a copy of self where proc elements are replaced with the result of them being called.
# File lib/dogcatcher/tag_set.rb, line 6 def compile dup.collect! { |el| el.is_a?(Proc) ? el.call : el } end
compile!()
click to toggle source
Replaces the contents of the tag set with the result of calling {#compile} and returns self.
# File lib/dogcatcher/tag_set.rb, line 12 def compile! replace(compile) end