Sha256: adf747bed9ba11cc3c9a3dac10324319eac9db123de9d57c40d41475d60937ef

Contents?: true

Size: 474 Bytes

Versions: 1

Compression:

Stored size: 474 Bytes

Contents

module SoberSwag
  module Path
    ##
    # One literal text fragment, basically
    class Literal < Node
      ##
      # Make a new text node
      # @param text [String]
      def initialize(text)
        @text = text
      end

      attr_reader :text

      ##
      # We can make a jump table out of this node!
      def jumpable?
        true
      end

      ##
      # This doesn't read a parameter type.
      def param?
        false
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sober_swag-0.1.0 lib/sober_swag/path/literal.rb