Class: Middleman::ClownCarExtension::ClownCarResource

Inherits:
Sitemap::Resource
  • Object
show all
Defined in:
lib/middleman-clowncar/extension.rb

Instance Method Summary collapse

Constructor Details

#initialize(store, path, svg = nil) ⇒ ClownCarResource

Returns a new instance of ClownCarResource.



163
164
165
166
167
# File 'lib/middleman-clowncar/extension.rb', line 163

def initialize(store, path, svg=nil)
  super(store, path, nil)

  @svg = svg
end

Instance Method Details

#binary?Boolean

Returns:

  • (Boolean)


185
186
187
# File 'lib/middleman-clowncar/extension.rb', line 185

def binary?
  false
end

#ignored?Boolean

Returns:

  • (Boolean)


173
174
175
# File 'lib/middleman-clowncar/extension.rb', line 173

def ignored?
  false
end

#metadataObject



181
182
183
# File 'lib/middleman-clowncar/extension.rb', line 181

def 
  @local_metadata
end

#raw_dataObject



177
178
179
# File 'lib/middleman-clowncar/extension.rb', line 177

def raw_data
  {}
end

#render(opts = {}, locs = {}, &block) ⇒ Object



169
170
171
# File 'lib/middleman-clowncar/extension.rb', line 169

def render(opts={}, locs={}, &block)
  @svg
end