MCPcopy Create free account
hub / github.com/eventuallyconsultant/codegenr / get_param_as_bool

Method get_param_as_bool

codegenr/src/helpers/handlebars_ext.rs:82–84  ·  view source on GitHub ↗
(&self, index: usize)

Source from the content-addressed store, hash-verified

80 fn get_param_as_array(&self, index: usize) -> Option<&Vec<Value>> {
81 self.get_param_as_json(index).map(|value| value.as_array()).flatten()
82 }
83
84 fn get_param_as_array_or_fail(&self, index: usize, helper_name: &str) -> Result<&Vec<Value>, RenderError> {
85 match self.get_param_as_json_or_fail(index, helper_name)? {
86 Value::Array(a) => Ok(a),
87 _ => Err(RenderError::new(format!(

Callers 3

call_innerMethod · 0.80
callMethod · 0.80

Calls 1

is_truthyFunction · 0.85

Tested by

no test coverage detected