Class: OrgParse::OrgVisitor

Inherits:
Object
  • Object
show all
Defined in:
lib/org-parse/visitor.rb

Direct Known Subclasses

HtmlVisitor, TextileVisitor

Constant Summary collapse

@@image_exts =
['jpeg', 'jpg', 'png', 'gif', 'bmp', 'tiff', 'srg']

Instance Method Summary collapse

Constructor Details

#initializeOrgVisitor

Returns a new instance of OrgVisitor.



47
48
49
# File 'lib/org-parse/visitor.rb', line 47

def initialize
  make_image_regs @@image_exts
end

Instance Method Details

#make_image_regs(exts) ⇒ Object



51
52
53
# File 'lib/org-parse/visitor.rb', line 51

def make_image_regs(exts)
  @image_file_reg = /\.(#{exts.join('|')})$/
end