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