Class: Rubyword::Writer::Style::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyword/writer/style/base.rb

Direct Known Subclasses

Paragraph, Section, Word

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(section, xml, rubyword) ⇒ Base

Returns a new instance of Base.



7
8
9
10
11
# File 'lib/rubyword/writer/style/base.rb', line 7

def initialize(section, xml, rubyword)
  @section = section
  @xml = xml
  @rubyword = rubyword
end

Instance Attribute Details

#rubywordObject

Returns the value of attribute rubyword.



6
7
8
# File 'lib/rubyword/writer/style/base.rb', line 6

def rubyword
  @rubyword
end

#sectionObject

Returns the value of attribute section.



6
7
8
# File 'lib/rubyword/writer/style/base.rb', line 6

def section
  @section
end

#styleObject

Returns the value of attribute style.



6
7
8
# File 'lib/rubyword/writer/style/base.rb', line 6

def style
  @style
end

#xmlObject

Returns the value of attribute xml.



6
7
8
# File 'lib/rubyword/writer/style/base.rb', line 6

def xml
  @xml
end