Class: JSONP3::Value
- Inherits:
-
FunctionExtension
- Object
- FunctionExtension
- JSONP3::Value
- Defined in:
- lib/json_p3/function_extensions/value.rb
Overview
The standard value
function.
Constant Summary collapse
- ARG_TYPES =
[:nodes_expression].freeze
- RETURN_TYPE =
:value_expression
Instance Method Summary collapse
Instance Method Details
#call(node_list) ⇒ Object
11 12 13 |
# File 'lib/json_p3/function_extensions/value.rb', line 11 def call(node_list) node_list.length == 1 ? node_list.first.value : :nothing end |