This commit is contained in:
@@ -3,11 +3,12 @@
|
||||
module Ezdoc
|
||||
module Nodes
|
||||
class Paragraph < Base
|
||||
attr_reader :runs
|
||||
attr_reader :runs, :style
|
||||
|
||||
def initialize(runs = [])
|
||||
def initialize(runs = [], style: nil)
|
||||
super()
|
||||
@runs = runs
|
||||
@style = style
|
||||
end
|
||||
|
||||
def add_run(run)
|
||||
|
||||
@@ -3,14 +3,15 @@
|
||||
module Ezdoc
|
||||
module Nodes
|
||||
class Run < Base
|
||||
attr_reader :text, :bold, :italic, :underline
|
||||
attr_reader :text, :bold, :italic, :underline, :style
|
||||
|
||||
def initialize(text, bold: false, italic: false, underline: false)
|
||||
def initialize(text, bold: false, italic: false, underline: false, style: nil)
|
||||
super()
|
||||
@text = text
|
||||
@bold = bold
|
||||
@italic = italic
|
||||
@underline = underline
|
||||
@style = style
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user