class Piggly::Tags::AbstractTag
Constants
- PATTERN
Attributes
id[RW]
to_s[RW]
Public Class Methods
new(prefix = nil, id = nil)
click to toggle source
# File lib/piggly/tags.rb, line 18 def initialize(prefix = nil, id = nil) @id = Digest::MD5.hexdigest(prefix.to_s + (id || object_id).to_s).slice(0, 16) end
Public Instance Methods
tap() { |self| ... }
click to toggle source
Defined here in case ActiveSupport hasn't defined it on Object
# File lib/piggly/tags.rb, line 25 def tap yield self self end