Method: Origami::Page#each_annotation
- Defined in:
- lib/origami/page.rb
#each_annotation ⇒ Object
Iterate through each Annotation of the Page.
696 697 698 699 700 701 702 703 704 705 |
# File 'lib/origami/page.rb', line 696 def each_annotation annots = self.Annots return enum_for(__method__) { annots.is_a?(Array) ? annots.length : 0 } unless block_given? return unless annots.is_a?(Array) annots.each do |annot| yield(annot.solve) end end |