Sha256: 48ff7a976feab8918c41986c23e03e7dcb1733c83e90bd66b8505e908848a93f

Contents?: true

Size: 465 Bytes

Versions: 3

Compression:

Stored size: 465 Bytes

Contents

module FluentPath
  module STU3
    class Expression
      attr_accessor :tree

      def initialize(tree)
        @tree = tree
      end

      def to_s
        @tree.to_s
      end

      def inspect
        to_s
      end

      def clone
        clone_tree = @tree.map do |x|
          x.clone
        rescue
          # TODO: This appears to be dead code
          x
        end
        FluentPath::STU3::Expression.new(clone_tree)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fhir_stu3_models-3.1.1 lib/fhir_stu3_models/fluentpath/expression.rb
fhir_stu3_models-3.1.0 lib/fhir_stu3_models/fluentpath/expression.rb
fhir_stu3_models-3.0.2 lib/fhir_stu3_models/fluentpath/expression.rb