Class: Boxspring::TagCollection

Inherits:
Base
  • Object
show all
Defined in:
lib/boxspring/tag_collection.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Boxspring::Base

Instance Method Details

#tagsObject



12
13
14
15
16
17
18
19
20
# File 'lib/boxspring/tag_collection.rb', line 12

def tags
  @_tags ||= begin
    self.attributes.include?( :tags ) ? 
      self.attributes[ :tags ].map do | tag |
        Tag.new( tag ) 
      end :
      nil
  end
end