Class: RubyDocx::InextensibleBlock
- Inherits:
-
Object
- Object
- RubyDocx::InextensibleBlock
- Defined in:
- lib/ruby_docx/elements/inextensible_block.rb
Instance Attribute Summary collapse
-
#document ⇒ Object
Returns the value of attribute document.
-
#styles ⇒ Object
Returns the value of attribute styles.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#document ⇒ Object
Returns the value of attribute document.
3 4 5 |
# File 'lib/ruby_docx/elements/inextensible_block.rb', line 3 def document @document end |
#styles ⇒ Object
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 |
#build ⇒ Object
4 5 6 |
# File 'lib/ruby_docx/elements/inextensible_block.rb', line 4 def build build_node end |