Class: OrgParse::OrgVisitor
- Inherits:
-
Object
- Object
- OrgParse::OrgVisitor
- Defined in:
- lib/org-parse/visitor.rb
Direct Known Subclasses
Constant Summary collapse
- @@image_exts =
['jpeg', 'jpg', 'png', 'gif', 'bmp', 'tiff', 'srg']
Instance Method Summary collapse
-
#initialize ⇒ OrgVisitor
constructor
A new instance of OrgVisitor.
- #make_image_regs(exts) ⇒ Object
Constructor Details
#initialize ⇒ OrgVisitor
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 |