Class: RailroadDiagrams::ZeroOrMore
- Defined in:
- lib/railroad_diagrams/zero_or_more.rb,
sig/generated/railroad_diagrams/zero_or_more.rbs
Overview
Draws zero or more occurrences of an item.
Instance Method Summary collapse
-
#initialize(item, repeat = nil, legacy_skip = Deprecation::UNSET, skip: Deprecation::UNSET, id: nil, cls: nil, attrs: {}) ⇒ ZeroOrMore
constructor
rubocop:disable-next Metrics/ParameterLists.
Methods inherited from Choice
#add_downward_path, #add_downward_return_path, #add_upward_path, #add_upward_return_path, #child_nodes, #choice_layout, #expand_text, #format, #format_default_item, #format_items_above_default, #format_items_below_default, #measure, #render_svg, #render_text, #svg_path, #text_diagram, #text_gaps, #to_s
Constructor Details
#initialize(item, repeat = nil, legacy_skip = Deprecation::UNSET, skip: Deprecation::UNSET, id: nil, cls: nil, attrs: {}) ⇒ ZeroOrMore
rubocop:disable-next Metrics/ParameterLists
14 15 16 17 18 |
# File 'lib/railroad_diagrams/zero_or_more.rb', line 14 def initialize(item, repeat = nil, legacy_skip = Deprecation::UNSET, skip: Deprecation::UNSET, id: nil, cls: nil, attrs: {}) skip = Deprecation.positional_argument('skip', legacy_skip, skip, false) super(OneOrMore.new(item, repeat), skip: skip, id: id, cls: cls, attrs: attrs) end |