Class: Pakyow::Presenter::FieldNode Private

Inherits:
SignificantNode show all
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.

Constant Summary collapse

FIELD_TAGS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

[
  INPUT_TAG,
  SELECT_TAG,
  TEXTAREA_TAG
].freeze

Class Method Summary collapse

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.

Returns:

  • (Boolean)

304
305
306
# File 'lib/pakyow/presenter/significant_nodes.rb', line 304

def self.significant?(node)
  node.is_a?(Oga::XML::Element) && FIELD_TAGS.include?(node.name)
end