Class: Pakyow::Presenter::TemplateNode Private
- Inherits:
-
SignificantNode
- Object
- SignificantNode
- Pakyow::Presenter::TemplateNode
- Defined in:
- lib/pakyow/presenter/significant_nodes.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .significant?(node) ⇒ Boolean private
Methods inherited from SignificantNode
binding_within?, within_binding?, within_form?
Class Method Details
.significant?(node) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
289 290 291 |
# File 'lib/pakyow/presenter/significant_nodes.rb', line 289 def self.significant?(node) node.is_a?(Oga::XML::Element) && node.name == SCRIPT_TAG && node[:type] == "text/template" end |