Sha256: 73f272a47ea24a89f6b00cfdf2a8db2d64fd8482f0fd6466a0065f6b85998d18
Contents?: true
Size: 836 Bytes
Versions: 4
Compression:
Stored size: 836 Bytes
Contents
# frozen_string_literal: true module Attachy module ViewHelper def attachy(method, object, options, block) viewer = Viewer.new(method, object, options, self) return block.call(viewer) if block viewer.field end def attachy_content(method, object, options = {}) Viewer.new(method, object, options, self).content end def attachy_file_field(method, object, options = {}) Viewer.new(method, object, options, self).file_field end def attachy_image(method, object, options = {}) Viewer.new(method, object, options, self).image end def attachy_link(method, object, options = {}) Viewer.new(method, object, options, self).link end def attachy_node(method, object, options = {}) Viewer.new(method, object, options, self).node end end end
Version data entries
4 entries across 4 versions & 1 rubygems