MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / attr

Method attr

atomic-canonical/src/directive.rs:37–39  ·  view source on GitHub ↗
(&self, key: &str)

Source from the content-addressed store, hash-verified

35
36impl Directive {
37 pub fn attr(&self, key: &str) -> Option<&str> {
38 self.attrs.get(key).map(|s| s.as_str())
39 }
40}
41
42/// Parse all top-level directives out of a markdown body. Prose outside any

Callers 3

lift_acFunction · 0.80
lift_taskFunction · 0.80
lift_refFunction · 0.80

Calls 2

getMethod · 0.65
as_strMethod · 0.45

Tested by

no test coverage detected