Class: RubyDocx::InextensibleBlock

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_docx/elements/inextensible_block.rb

Direct Known Subclasses

Block, Br

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#documentObject

Returns the value of attribute document.



3
4
5
# File 'lib/ruby_docx/elements/inextensible_block.rb', line 3

def document
  @document
end

#stylesObject

Returns the value of attribute styles.



3
4
5
# File 'lib/ruby_docx/elements/inextensible_block.rb', line 3

def styles
  @styles
end

Class Method Details

.create(*args) ⇒ Object



12
13
14
# File 'lib/ruby_docx/elements/inextensible_block.rb', line 12

def self.create(*args)
  new(*args).build
end

Instance Method Details

#add_styles(adding_styles) ⇒ Object



8
9
10
# File 'lib/ruby_docx/elements/inextensible_block.rb', line 8

def add_styles(adding_styles)
  self.styles = ( styles.present? ? styles : {} ).merge(adding_styles)
end

#buildObject



4
5
6
# File 'lib/ruby_docx/elements/inextensible_block.rb', line 4

def build
  build_node
end