How to call: module Foo; def self.bar

Say you have:

module Foo
def self.bar

(And more ruby code etc…; I only wanted to focus on the definition)

How do you call such a definition like the above, ideally in a
way that this will commonly be understood as a re-usable term?

Robert H. wrote in post #1175695:

Say you have:

module Foo
def self.bar

(And more ruby code etc…; I only wanted to focus on the definition)

How do you call such a definition like the above, ideally in a
way that this will commonly be understood as a re-usable term?

irb> module F ; def self.a() p ‘a’ ; end ; end
=> nil
irb> F::a
“a”
=> “a”
irb> F.a
“a”
=> “a”