Method: GoogleApps::Atom::Feed#entry_wrap

Defined in:
lib/google_apps/atom/feed.rb

#entry_wrap(content_array) ⇒ Object

entry_wrap adds atom:entry opening and closing tags to the provided content_array and the beginning and end.

entry_wrap content_array

entry_wrap returns an array with an opening atom:entry element prepended to the front and a closing atom:entry tag appended to the end.



105
106
107
# File 'lib/google_apps/atom/feed.rb', line 105

def entry_wrap(content_array)
  content_array.unshift(Atom::[0]).push(Atom::[1])
end