module Psychgus::Stylables::MapFlowStylable
(see Stylers::MapFlowStyler
)
Public Class Methods
new(*)
click to toggle source
(see StyleStylable#initialize) @!method initialize(min_level=0,new_style: nil,**kargs)
If new_style
is nil (the default), then {MAPPING_FLOW} will be used.
Calls superclass method
Psychgus::Stylables::StyleStylable::new
# File lib/psychgus/stylables.rb, line 178 def initialize(*) super @new_style = MAPPING_FLOW if @new_style.nil? end
Public Instance Methods
style_mapping(sniffer,node)
click to toggle source
Change the style of a Mapping to FLOW (or to the value of {new_style}) if it is >= {min_level}.
@see change_style @see Styler#style_mapping
# File lib/psychgus/stylables.rb, line 189 def style_mapping(sniffer,node) change_style(sniffer,node) end