class JMESPath::Nodes::ToArrayFunction
Public Instance Methods
Source
# File lib/jmespath/nodes/function.rb, line 647 def call(args) value = args.first value.respond_to?(:to_ary) ? value.to_ary : [value] end
# File lib/jmespath/nodes/function.rb, line 647 def call(args) value = args.first value.respond_to?(:to_ary) ? value.to_ary : [value] end