pub fn common_method(
receiver: &Value,
method: &str,
args: &[Value],
line: u32,
) -> Result<Option<(Value, Option<Value>)>, BopError>Expand description
Methods every value understands: introspection + stringification.
Dispatched from call_method before the type-specific method
tables so x.type(), x.to_str(), and x.inspect() work
uniformly across every Value shape.
Returns Ok(Some(result)) when the method name matched,
Ok(None) when it didn’t (so the caller falls through to
the type-specific dispatcher). Err on arg-count mismatches.