Sha256: 8596742d2d17dfe21c914f85b2f80cfa427249e239b24e9cea404e28e6be339c

Contents?: true

Size: 436 Bytes

Versions: 11

Compression:

Stored size: 436 Bytes

Contents

# frozen_string_literal: true

module PlatformosCheck
  module Tags
    class Return < Liquid::Tag
      attr_reader :var

      def initialize(tag_name, markup, options)
        super
        @var = Liquid::Variable.new(markup, options)
      end

      def variable
        @var.name
      end

      class ParseTreeVisitor < Liquid::ParseTreeVisitor
        def children
          [@node.var]
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
platformos-check-0.4.14 lib/platformos_check/tags/return.rb
platformos-check-0.4.13 lib/platformos_check/tags/return.rb
platformos-check-0.4.12 lib/platformos_check/tags/return.rb
platformos-check-0.4.11 lib/platformos_check/tags/return.rb
platformos-check-0.4.10 lib/platformos_check/tags/return.rb
platformos-check-0.4.9 lib/platformos_check/tags/return.rb
platformos-check-0.4.8 lib/platformos_check/tags/return.rb
platformos-check-0.4.7 lib/platformos_check/tags/return.rb
platformos-check-0.4.6 lib/platformos_check/tags/return.rb
platformos-check-0.4.5 lib/platformos_check/tags/return.rb
platformos-check-0.4.4 lib/platformos_check/tags/return.rb