Sha256: ba0e3b0c8c97d4dcd8e018f1dcd926968d710cf424ca3f7c9f3d3a6dab3a7b56
Contents?: true
Size: 306 Bytes
Versions: 1
Compression:
Stored size: 306 Bytes
Contents
require "base_presenter/version" 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.2 | lib/base_presenter.rb |