class Doing::Section
Attributes
original[RW]
title[RW]
Public Class Methods
new(title, original: nil)
click to toggle source
Calls superclass method
# 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
Public Instance Methods
inspect()
click to toggle source
@private
# File lib/doing/section.rb, line 26 def inspect %(#<Doing::Section @title="#{@title}" @original="#{@original}">) end
to_s()
click to toggle source
Outputs section title
# File lib/doing/section.rb, line 21 def to_s @title end