Sha256: ef170cd4868dca965a5668985f99ef7330b1b383e4999c66321b6a92660cec33

Contents?: true

Size: 535 Bytes

Versions: 13

Compression:

Stored size: 535 Bytes

Contents

module Locomotive
  module Steam
    module Liquid
      module Drops

        # Used to render the content of the parent block.
        #
        #   {% extends home %}
        #   {% block content }{{ block.super }}{% endblock %}
        #
        class InheritedBlock < ::Liquid::Drop
          def initialize(block)
            @block = block
          end

          def name
            @block.name
          end

          def super
            @block.call_super(@context)
          end
        end
      end

    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
locomotivecms_steam-1.8.0.alpha2 lib/locomotive/steam/liquid/drops/inherited_block.rb
locomotivecms_steam-1.8.0.alpha1 lib/locomotive/steam/liquid/drops/inherited_block.rb
locomotivecms_steam-1.7.1 lib/locomotive/steam/liquid/drops/inherited_block.rb
locomotivecms_steam-1.7.0 lib/locomotive/steam/liquid/drops/inherited_block.rb
locomotivecms_steam-1.6.1 lib/locomotive/steam/liquid/drops/inherited_block.rb
locomotivecms_steam-1.6.0 lib/locomotive/steam/liquid/drops/inherited_block.rb
locomotivecms_steam-1.6.0.rc1 lib/locomotive/steam/liquid/drops/inherited_block.rb
locomotivecms_steam-1.6.0.beta1 lib/locomotive/steam/liquid/drops/inherited_block.rb
locomotivecms_steam-1.5.3 lib/locomotive/steam/liquid/drops/inherited_block.rb
locomotivecms_steam-1.5.2 lib/locomotive/steam/liquid/drops/inherited_block.rb
locomotivecms_steam-1.5.1 lib/locomotive/steam/liquid/drops/inherited_block.rb
locomotivecms_steam-1.5.0 lib/locomotive/steam/liquid/drops/inherited_block.rb
locomotivecms_steam-1.5.0.rc1 lib/locomotive/steam/liquid/drops/inherited_block.rb