Class: Coradoc::Element::Table::Cell
- Inherits:
-
Object
- Object
- Coradoc::Element::Table::Cell
- Defined in:
- lib/coradoc/element/table.rb
Instance Attribute Summary collapse
-
#anchor ⇒ Object
readonly
Returns the value of attribute anchor.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Cell
constructor
A new instance of Cell.
- #to_adoc ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Cell
Returns a new instance of Cell.
49 50 51 52 53 54 55 56 57 |
# File 'lib/coradoc/element/table.rb', line 49 def initialize( = {}) @id = .fetch(:id, nil) @anchor = @id.nil? ? nil : Inline::Anchor.new(@id) @colrowattr = .fetch(:colrowattr, '') @alignattr = .fetch(:alignattr, '') @style = .fetch(:style, '') @content = .fetch(:content, '') @delim = .fetch(:delim, '') end |
Instance Attribute Details
#anchor ⇒ Object (readonly)
Returns the value of attribute anchor.
48 49 50 |
# File 'lib/coradoc/element/table.rb', line 48 def anchor @anchor end |