Sha256: 3d9bbf1faef2c5c3526c916aff5dbb81e9345cdec5be26098bb2f40489ee8dea
Contents?: true
Size: 639 Bytes
Versions: 2
Compression:
Stored size: 639 Bytes
Contents
# frozen_string_literal: true require "phlex" require "active_support/core_ext/string/output_safety" require "zeitwerk" loader = Zeitwerk::Loader.for_gem loader.setup module Lifeform class Error < StandardError; end module RefineProcToString refine Proc do def to_s call.to_s end end end end if defined?(Bridgetown) # Check compatibility raise "The Lifeform support for Bridgetown requires v1.2 or newer" if Bridgetown::VERSION.to_f < 1.2 Bridgetown.initializer :lifeform do # |config| require "lifeform/phlex_renderable" unless Phlex::HTML.instance_methods.include?(:render_in) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lifeform-0.11.0 | lib/lifeform.rb |
lifeform-0.10.0 | lib/lifeform.rb |