Class: Elisp2any::Aside
- Inherits:
-
Object
- Object
- Elisp2any::Aside
- Defined in:
- lib/elisp2any/aside.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(content) ⇒ Aside
constructor
A new instance of Aside.
- #source ⇒ Object
Constructor Details
#initialize(content) ⇒ Aside
Returns a new instance of Aside.
19 20 21 |
# File 'lib/elisp2any/aside.rb', line 19 def initialize(content) @content = content end |
Class Method Details
.scan(scanner) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/elisp2any/aside.rb', line 5 def self.scan(scanner) pos = scanner.pos com = Comment.scan(scanner) or return unless com.colons == 1 scanner.pos = pos return end new(com.content) end |
Instance Method Details
#source ⇒ Object
15 16 17 |
# File 'lib/elisp2any/aside.rb', line 15 def source ";#{@content}\n" end |