Class: Rubyword::Element::Base

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

Direct Known Subclasses

Image, Link, List, PageBreak, Text, TextBreak

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rubyword, section = nil) ⇒ Base



6
7
8
9
# File 'lib/rubyword/element/base.rb', line 6

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

Instance Attribute Details

#rubywordObject

Returns the value of attribute rubyword.



5
6
7
# File 'lib/rubyword/element/base.rb', line 5

def rubyword
  @rubyword
end

#sectionObject

Returns the value of attribute section.



5
6
7
# File 'lib/rubyword/element/base.rb', line 5

def section
  @section
end