Sha256: 5bdda3e187afba65a960d759d22fc8341b88b6f0c7b28f77c44c30b7850a8ab5
Contents?: true
Size: 335 Bytes
Versions: 1
Compression:
Stored size: 335 Bytes
Contents
require "base_presenter/version" require "application_helper" class BasePresenter def initialize(object, template) @object = object @template = template end def self.presents(name) define_method(name) do @object end end def method_missing(*args, &block) @template.send(*args, &block) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
base_presenter-0.0.3 | lib/base_presenter.rb |