Module: Psychgus::Stylables::NoTagStylable
- Includes:
- Psychgus::Styler
- Included in:
- Psychgus::Stylers::NoTagStyler
- Defined in:
- lib/psychgus/stylables.rb
Overview
A Tag remover for classes.
Constant Summary
Constants included from Psychgus::Styler
Instance Method Summary collapse
-
#style(sniffer, node) ⇒ Object
If
node.tag
is settable, set it to nil.
Methods included from Psychgus::Styler
#style_alias, #style_document, #style_mapping, #style_scalar, #style_sequence, #style_stream
Instance Method Details
#style(sniffer, node) ⇒ Object
If node.tag
is settable, set it to nil.
227 228 229 |
# File 'lib/psychgus/stylables.rb', line 227 def style(sniffer,node) node.tag = nil if node.respond_to?(:tag=) end |