Class: Tumblargh::Renderer::Blocks::Photo
- Inherits:
-
Post
- Object
- Tumblargh::Renderer::Base
- Post
- Tumblargh::Renderer::Blocks::Photo
- Defined in:
- lib/tumblargh/renderer/blocks.rb
Instance Attribute Summary
Attributes inherited from Tumblargh::Renderer::Base
Instance Method Summary collapse
Methods inherited from Tumblargh::Renderer::Base
#context_post, contextual_tag, #escape_html, #escape_url, #initialize, #method_missing, #render, #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
#photo_alt ⇒ Object
65 66 67 |
# File 'lib/tumblargh/renderer/blocks.rb', line 65 def photo_alt strip_html(context.) end |
#should_render? ⇒ Boolean
61 62 63 |
# File 'lib/tumblargh/renderer/blocks.rb', line 61 def should_render? context_post.type == 'photo' && context_post.photos.size == 1 end |