Class: Tumblargh::Renderer::Blocks::Post

Inherits:
Tumblargh::Renderer::Base show all
Defined in:
lib/tumblargh/renderer/blocks.rb

Overview

Base post type

Direct Known Subclasses

Answer, Audio, Chat, Link, Photo, Quote, Text

Instance Attribute Summary

Attributes inherited from Tumblargh::Renderer::Base

#context, #node, #options

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

#should_render?Boolean

Returns:



41
42
43
# File 'lib/tumblargh/renderer/blocks.rb', line 41

def should_render?
  self.class.name.demodulize.downcase == context.type
end