Add builder pattern for paragraph, lists, tables
This commit is contained in:
17
lib/ezdoc/nodes/run.rb
Normal file
17
lib/ezdoc/nodes/run.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Ezdoc
|
||||
module Nodes
|
||||
class Run < Base
|
||||
attr_reader :text, :bold, :italic, :underline
|
||||
|
||||
def initialize(text, bold: false, italic: false, underline: false)
|
||||
super()
|
||||
@text = text
|
||||
@bold = bold
|
||||
@italic = italic
|
||||
@underline = underline
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user