Permalink
Browse files

adding present() factory method

  • Loading branch information...
rwilcox committed Oct 20, 2011
1 parent 81a8604 commit d70f5fe8aa0ce771af611dfe41f5869fbbfca74d
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/present_factory.rb
View
@@ -0,0 +1,4 @@
def Present(object)
presenter_class = Object.const_get("#{object.class.name}Presenter")
presenter_class.new(object)
end

0 comments on commit d70f5fe

Please sign in to comment.