lib/arigato/view.rb in arigato-0.1.1 vs lib/arigato/view.rb in arigato-0.1.2
- old
+ new
@@ -1,17 +1,19 @@
require 'arigato/version'
module Arigato
class View
- attr_accessor :theme, :layout, :gemfile, :title
+ TITLE = 'Special Thanks'
+ attr_accessor :theme, :specs, :layout, :title
+
def initialize(theme, gemfile = './Gemfile', layout = true)
@theme = theme
@specs = Arigato.specs(gemfile)
@layout = layout
- @title = 'Special Thanks'
+ @title = TITLE
end
def render
@layout ? render_with_layout : render_without_layout
end
@@ -56,10 +58,13 @@
else
label
end
end
- def author(spec)
+ def content_for(title = nil)
+ end
+
+ def self.author(spec)
spec.author ? "by #{spec.author}" : ''
end
private