class Doing::Section
Attributes
Public Class Methods
Source
# File lib/doing/section.rb, line 8 def initialize(title, original: nil) super() @title = title @original = if original.nil? "#{title}:" else original =~ /:(\s+@[^ (]+(\([^)]*\))?)*?$/ ? original : "#{original}:" end end
Calls superclass method
Public Instance Methods
Source
# File lib/doing/section.rb, line 20 def equal?(other) @title == other.title end
Source
# File lib/doing/section.rb, line 30 def inspect %(#<Doing::Section @title="#{@title}" @original="#{@original}">) end
@private