Class Atom::Content
In: lib/atom/text.rb
Parent: Atom::Text

Atom::Content behaves the same as an Atom::Text, but for two things:

  • the "type" attribute can be an arbitrary media type
  • there is a "src" attribute which is an URI that points to the content of the entry (in which case the content element will be empty)

Methods

src=  

Public Instance methods

[Source]

# File lib/atom/text.rb, line 206
    def src= v
      @content = nil

      if self.base
        @src = (self.base.to_uri + v).to_s
      else
        @src = v
      end
    end

[Validate]