Class: Nagoro::Element
- Inherits:
-
Object
- Object
- Nagoro::Element
- Defined in:
- lib/nagoro/element.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#params ⇒ Object
Returns the value of attribute params.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(content) ⇒ Element
constructor
A new instance of Element.
- #render ⇒ Object
Constructor Details
#initialize(content) ⇒ Element
Returns a new instance of Element.
5 6 7 |
# File 'lib/nagoro/element.rb', line 5 def initialize(content) @content = content.strip end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
3 4 5 |
# File 'lib/nagoro/element.rb', line 3 def content @content end |
#params ⇒ Object
Returns the value of attribute params.
3 4 5 |
# File 'lib/nagoro/element.rb', line 3 def params @params end |
Class Method Details
Instance Method Details
#render ⇒ Object
9 10 11 |
# File 'lib/nagoro/element.rb', line 9 def render @content end |