Module: Elisp2any

Defined in:
lib/elisp2any.rb,
lib/elisp2any/code.rb,
lib/elisp2any/line.rb,
lib/elisp2any/text.rb,
lib/elisp2any/aside.rb,
lib/elisp2any/comment.rb,
lib/elisp2any/heading.rb,
lib/elisp2any/section.rb,
lib/elisp2any/version.rb,
lib/elisp2any/codeblock.rb,
lib/elisp2any/paragraph.rb,
lib/elisp2any/blanklines.rb,
lib/elisp2any/commentary.rb,
lib/elisp2any/expression.rb,
lib/elisp2any/footer_line.rb,
lib/elisp2any/header_line.rb,
lib/elisp2any/inline_code.rb,
lib/elisp2any/html_renderer.rb

Defined Under Namespace

Classes: Aside, Blanklines, Code, Codeblock, Comment, Commentary, Expression, FooterLine, HTMLRenderer, HeaderLine, Heading, InlineCode, Line, Paragraph, Section, Text

Constant Summary collapse

Error =
Class.new(StandardError)
VERSION =

Version of this library.

'0.0.6'

Class Method Summary collapse

Class Method Details

.scan_filename(scanner) ⇒ Object

:nodoc:



9
10
11
# File 'lib/elisp2any.rb', line 9

def self.scan_filename(scanner) # :nodoc:
  scanner.scan(/[a-z]+[.]el\b/)
end

.scan_top_heading(scanner) ⇒ Object

:nodoc:



17
18
19
20
21
22
23
24
25
# File 'lib/elisp2any.rb', line 17

def self.scan_top_heading(scanner) # :nodoc:
  pos = scanner.pos
  heading = Heading.scan(scanner) or return
  unless heading.level.zero?
    scanner.pos = pos
    return
  end
  heading.content
end

.scan_variable(scanner) ⇒ Object

:nodoc:



13
14
15
# File 'lib/elisp2any.rb', line 13

def self.scan_variable(scanner) # :nodoc:
  scanner.scan(/[a-z-]+\b/)
end