Class: SatoriLikeDictionary::Entry
- Inherits:
-
Array
- Object
- Array
- SatoriLikeDictionary::Entry
- Includes:
- Renderer
- Defined in:
- lib/satori_like_dictionary.rb
Overview
entry (*)
Constant Summary
Constants included from Renderer
Instance Method Summary collapse
Methods included from Renderer
Instance Method Details
#render_base(events, request) ⇒ Object
214 215 216 |
# File 'lib/satori_like_dictionary.rb', line 214 def render_base(events, request) '\1' + super end |
#to_template ⇒ String
to template
220 221 222 223 224 225 226 227 |
# File 'lib/satori_like_dictionary.rb', line 220 def to_template still_empty = true reverse.reject do |element| # remove last empty lines still_empty = still_empty && element.is_a?(Line) && element.empty? end.map do |element| element.to_template end.reverse.join('').chomp end |