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

Method get_param_as_str

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

Source from the content-addressed store, hash-verified

45 let len = self.params().len();
46 if len < count {
47 Err(RenderError::new(format!(
48 "`{}` helper needs at less {} arguments.",
49 helper_name, count
50 )))
51 } else {
52 Ok(())
53 }
54 }
55
56 fn get_param_as_str(&self, index: usize) -> Option<&str> {

Callers 4

call_innerMethod · 0.80
call_innerMethod · 0.80
callMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected