module Psychgus::Stylables::SeqFlowStylable

(see Stylers::SeqFlowStyler)

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 {SEQUENCE_FLOW} will be used.

Calls superclass method Psychgus::Stylables::StyleStylable::new
# File lib/psychgus/stylables.rb, line 246
def initialize(*)
  super

  @new_style = SEQUENCE_FLOW if @new_style.nil?
end

Public Instance Methods

style_sequence(sniffer,node) click to toggle source

Change the style of a Sequence to FLOW (or to the value of {new_style}) if it is >= {min_level}.

@see change_style @see Styler#style_sequence

# File lib/psychgus/stylables.rb, line 257
def style_sequence(sniffer,node)
  change_style(sniffer,node)
end