README.md in base_presenter-0.0.4 vs README.md in base_presenter-0.0.5
- old
+ new
@@ -25,12 +25,23 @@
delegate :name, :example
def name
"Name"
end
+
+ def self.class_name
+ "Example"
+ end
end
-and in file show.html.erb
+and in file show.html.erb with:
+* object @example
<% present @example do |presenter| %>
Name: <%= presenter.name %>
+ <% end %>
+
+* class Example
+
+ <% present Example do |presenter| %>
+ Class name: <%= presenter.class_name %>
<% end %>