class JMESPath::Nodes::ObjectProjection
Public Instance Methods
extract_targets(target)
click to toggle source
# File lib/jmespath/nodes/projection.rb, line 60 def extract_targets(target) if target.respond_to?(:to_hash) target.to_hash.values elsif target.is_a?(Struct) target.values end end
fast_instance()
click to toggle source
# File lib/jmespath/nodes/projection.rb, line 68 def fast_instance FastObjectProjection.new(@target.optimize, @projection.optimize) end