Class: Tumblargh::Renderer::Blocks::Lines
- Inherits:
-
Base
- Object
- Tumblargh::Renderer::Base
- Base
- Tumblargh::Renderer::Blocks::Lines
- Defined in:
- lib/tumblargh/renderer/blocks/chat.rb
Instance Attribute Summary
Attributes inherited from Tumblargh::Renderer::Base
Instance Method Summary collapse
-
#alt ⇒ Object
“odd” or “even” for each line of this post.
- #render ⇒ Object
-
#user_number ⇒ Object
A unique identifying integer representing the user of the current line of this post.
Methods inherited from Base
Methods inherited from Tumblargh::Renderer::Base
#context_post, contextual_tag, #escape_html, #escape_url, #initialize, #method_missing, #strip_html
Constructor Details
This class inherits a constructor from Tumblargh::Renderer::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Tumblargh::Renderer::Base
Instance Method Details
#alt ⇒ Object
“odd” or “even” for each line of this post. TODO Implementation
13 14 |
# File 'lib/tumblargh/renderer/blocks/chat.rb', line 13 def alt end |
#render ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/tumblargh/renderer/blocks/chat.rb', line 22 def render if context.is_a? Resource::Dialogue super else context.dialogue.map do |l| l.context = self self.class.new(node, l).render end.flatten.join('') end end |
#user_number ⇒ Object
A unique identifying integer representing the user of the current line of this post. TODO Implementation
19 20 |
# File 'lib/tumblargh/renderer/blocks/chat.rb', line 19 def user_number end |