Class: Rubyword::Writer::Part::Base

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rubyword, section = nil) ⇒ Base

Returns a new instance of Base.



7
8
9
# File 'lib/rubyword/writer/part/base.rb', line 7

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

Instance Attribute Details

#rubywordObject

Returns the value of attribute rubyword.



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

def rubyword
  @rubyword
end

#sectionObject

Returns the value of attribute section.



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

def section
  @section
end