Class: Tumblargh::Renderer::CustomTag
- Defined in:
- lib/tumblargh/renderer/tag.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from 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
#method_name ⇒ Object
12 13 14 |
# File 'lib/tumblargh/renderer/tag.rb', line 12 def method_name self.class.name.demodulize.sub('Tag', '').downcase end |
#render ⇒ Object
16 17 18 |
# File 'lib/tumblargh/renderer/tag.rb', line 16 def render context.send(method_name, node[1].split(':').last) end |