Class: FHIRPath::Expression
- Inherits:
-
Object
- Object
- FHIRPath::Expression
- Defined in:
- lib/fhir_models/fhirpath/expression.rb
Instance Attribute Summary collapse
-
#tree ⇒ Object
Returns the value of attribute tree.
Instance Method Summary collapse
- #clone ⇒ Object
-
#initialize(tree) ⇒ Expression
constructor
A new instance of Expression.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(tree) ⇒ Expression
Returns a new instance of Expression.
5 6 7 |
# File 'lib/fhir_models/fhirpath/expression.rb', line 5 def initialize(tree) @tree = tree end |
Instance Attribute Details
#tree ⇒ Object
Returns the value of attribute tree.
3 4 5 |
# File 'lib/fhir_models/fhirpath/expression.rb', line 3 def tree @tree end |
Instance Method Details
#clone ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/fhir_models/fhirpath/expression.rb', line 17 def clone clone_tree = @tree.map do |x| x.clone rescue StandardError # TODO: This appears to be dead code x end FHIRPath::Expression.new(clone_tree) end |
#inspect ⇒ Object
13 14 15 |
# File 'lib/fhir_models/fhirpath/expression.rb', line 13 def inspect to_s end |
#to_s ⇒ Object
9 10 11 |
# File 'lib/fhir_models/fhirpath/expression.rb', line 9 def to_s @tree.to_s end |