Class: Rubyword::Element::Base
- Inherits:
-
Object
- Object
- Rubyword::Element::Base
- Defined in:
- lib/rubyword/element/base.rb
Instance Attribute Summary collapse
-
#rubyword ⇒ Object
Returns the value of attribute rubyword.
-
#section ⇒ Object
Returns the value of attribute section.
Instance Method Summary collapse
-
#initialize(rubyword, section = nil) ⇒ Base
constructor
A new instance of Base.
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
#rubyword ⇒ Object
Returns the value of attribute rubyword.
5 6 7 |
# File 'lib/rubyword/element/base.rb', line 5 def rubyword @rubyword end |
#section ⇒ Object
Returns the value of attribute section.
5 6 7 |
# File 'lib/rubyword/element/base.rb', line 5 def section @section end |