Class: Grat::EmptyContent
- Inherits:
-
Object
- Object
- Grat::EmptyContent
- Defined in:
- lib/grat/content.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #children ⇒ Object
-
#initialize(url) ⇒ EmptyContent
constructor
A new instance of EmptyContent.
Constructor Details
#initialize(url) ⇒ EmptyContent
Returns a new instance of EmptyContent.
130 131 132 |
# File 'lib/grat/content.rb', line 130 def initialize(url) self.url = url end |
Instance Attribute Details
#url ⇒ Object
Returns the value of attribute url.
129 130 131 |
# File 'lib/grat/content.rb', line 129 def url @url end |
Instance Method Details
#children ⇒ Object
134 135 136 |
# File 'lib/grat/content.rb', line 134 def children @children ||= [] end |