Sha256: acac49308238cbbdd898674b098bbb81761402d1b7321bae325e9625a667a2b7

Contents?: true

Size: 321 Bytes

Versions: 3

Compression:

Stored size: 321 Bytes

Contents

module FluentPath
  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 { |x| x.clone rescue x }
      FluentPath::Expression.new(clone_tree)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fhir_models-1.8.2 lib/fhir_models/fluentpath/expression.rb
fhir_models-1.8.1 lib/fhir_models/fluentpath/expression.rb
fhir_models-1.8.0 lib/fhir_models/fluentpath/expression.rb