Sha256: 0d114e62cff86f7e4057af179bd6ea756fef0b441b8f3d9d20961af90d7e8553
Contents?: true
Size: 583 Bytes
Versions: 30
Compression:
Stored size: 583 Bytes
Contents
# frozen_string_literal: true module Doing # Section Object class Section attr_accessor :original, :title def initialize(title, original: nil) super() @title = title @original = if original.nil? "#{title}:" else original =~ /:(\s+@\S+(\(.*?\))?)*$/ ? original : "#{original}:" end end # Outputs section title def to_s @title end # @private def inspect %(#<Doing::Section @title="#{@title}" @original="#{@original}">) end end end
Version data entries
30 entries across 30 versions & 1 rubygems