Method: Speculation::Test.enumerate_methods
- Defined in:
- lib/speculation/test.rb
.enumerate_methods(*modules) ⇒ Array<Method>
Returns an array of public and protected singleton methods belonging to modules.
212 213 214 |
# File 'lib/speculation/test.rb', line 212 def self.enumerate_methods(*modules) modules.flat_map { |mod| mod.methods(false).map(&mod.method(:method)) } # method end |