Class: Grat::EmptyContent

Inherits:
Object
  • Object
show all
Defined in:
lib/grat/content.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#urlObject

Returns the value of attribute url.



129
130
131
# File 'lib/grat/content.rb', line 129

def url
  @url
end

Instance Method Details

#childrenObject



134
135
136
# File 'lib/grat/content.rb', line 134

def children
  @children ||= []
end