Class: Awestruct::Renderable
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Awestruct::Renderable
- Defined in:
- lib/awestruct/renderable.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#site ⇒ Object
readonly
Returns the value of attribute site.
Instance Method Summary collapse
-
#initialize(site) ⇒ Renderable
constructor
A new instance of Renderable.
- #render(context) ⇒ Object
Constructor Details
#initialize(site) ⇒ Renderable
Returns a new instance of Renderable.
8 9 10 11 |
# File 'lib/awestruct/renderable.rb', line 8 def initialize(site) super( {} ) @site = site end |
Instance Attribute Details
#site ⇒ Object (readonly)
Returns the value of attribute site.
6 7 8 |
# File 'lib/awestruct/renderable.rb', line 6 def site @site end |
Instance Method Details
#render(context) ⇒ Object
13 14 15 |
# File 'lib/awestruct/renderable.rb', line 13 def render(context) puts '' end |