Skip to content

Instantly share code, notes, and snippets.

@foca
Created October 3, 2009 22:16
Show Gist options
  • Save foca/200913 to your computer and use it in GitHub Desktop.
Save foca/200913 to your computer and use it in GitHub Desktop.
<%= foo(@object).cuack %>
<% foo(@objects).each do |o| %>
<%# you get the idea %>
<% end %>
module FooHelper
def foo(something)
ComplexFooBeast.new(something)
end
class ComplexFooBeast
# ...
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment