lib/trocla/formats.rb in trocla-0.2.3 vs lib/trocla/formats.rb in trocla-0.3.0
- old
+ new
@@ -6,9 +6,20 @@
@trocla = trocla
end
def render(output,render_options={})
output
end
+ def expensive?
+ self.class.expensive?
+ end
+ class << self
+ def expensive(is_expensive)
+ @expensive = is_expensive
+ end
+ def expensive?
+ @expensive == true
+ end
+ end
end
class << self
def [](format)
formats[format.downcase]