Class: Ruport::Format::Element
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Ruport::Format::Element
- Defined in:
- lib/ruport/format/document.rb
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Element
constructor
A new instance of Element.
- #to_s ⇒ Object
Constructor Details
#initialize(name, options = {}) ⇒ Element
Returns a new instance of Element.
66 67 68 69 |
# File 'lib/ruport/format/document.rb', line 66 def initialize(name,={}) super() self.name = name end |
Instance Method Details
#to_s ⇒ Object
71 72 73 |
# File 'lib/ruport/format/document.rb', line 71 def to_s self.content end |