Sha256: 876800692d46707169342e139543664a4925443e10b1f5f4257301bea7da31fc
Contents?: true
Size: 256 Bytes
Versions: 4
Compression:
Stored size: 256 Bytes
Contents
# frozen_string_literal: true module ViewHelper def self.extended(parent) parent.class_exec do let(:output) { example.call } let(:example) { view.new } end end def view(&block) let :view do Class.new(Phlex::View, &block) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
phlex-0.4.0 | fixtures/view_helper.rb |
phlex-0.3.2 | fixtures/view_helper.rb |
phlex-0.3.1 | fixtures/view_helper.rb |
phlex-0.3.0 | fixtures/view_helper.rb |