Skip to content

Instantly share code, notes, and snippets.

@hammerdr
Created August 29, 2012 05:30
Show Gist options
  • Save hammerdr/3507108 to your computer and use it in GitHub Desktop.
Save hammerdr/3507108 to your computer and use it in GitHub Desktop.
class PlainRubyObject
class Renderer < ApplicationController
def render(locals)
@locals = locals
ERB.new(File.open(...)).result(binding)
end
end
def plain_ruby_method
Renderer.new.render(stuff)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment