Sha256: 6942eba1b6d18af7adceaf03342438b794a98e01d396f2d1b71486a3e4526b2b

Contents?: true

Size: 240 Bytes

Versions: 4

Compression:

Stored size: 240 Bytes

Contents

module Yoda
  module AST
    class LiteralNode < Node
      def children
        []
      end

      # @return [Object]
      def value
        node.children[0]
      end

      def inspect_content
        value
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yoda-language-server-0.10.1 lib/yoda/ast/literal_node.rb
yoda-language-server-0.10.0 lib/yoda/ast/literal_node.rb
yoda-language-server-0.9.0 lib/yoda/ast/literal_node.rb
yoda-language-server-0.8.0 lib/yoda/ast/literal_node.rb