Sha256: 2b41dc852ac6db553097434cfe95bc254dbdfaf044adf100d8190b7f74735ed5

Contents?: true

Size: 450 Bytes

Versions: 15

Compression:

Stored size: 450 Bytes

Contents

module DuckPuncher
  module Ducks
    module Module
      def local_methods
        instance_methods(false).concat constants(false)
                                         .map! { |c| const_get(c) }
                                         .keep_if { |c| c.respond_to?(:instance_methods) }
                                         .flat_map { |c| c.instance_methods(false) }
                                         .uniq
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
duck_puncher-5.0.1 lib/duck_puncher/ducks/module.rb
duck_puncher-5.0.0 lib/duck_puncher/ducks/module.rb
duck_puncher-4.5.1 lib/duck_puncher/ducks/module.rb
duck_puncher-4.5.0 lib/duck_puncher/ducks/module.rb
duck_puncher-4.4.2 lib/duck_puncher/ducks/module.rb
duck_puncher-4.4.1 lib/duck_puncher/ducks/module.rb
duck_puncher-4.4.0 lib/duck_puncher/ducks/module.rb
duck_puncher-4.3.1 lib/duck_puncher/ducks/module.rb
duck_puncher-4.3.0 lib/duck_puncher/ducks/module.rb
duck_puncher-4.2.3 lib/duck_puncher/ducks/module.rb
duck_puncher-4.2.2 lib/duck_puncher/ducks/module.rb
duck_puncher-4.2.1 lib/duck_puncher/ducks/module.rb
duck_puncher-4.2.0 lib/duck_puncher/ducks/module.rb
duck_puncher-4.1.0 lib/duck_puncher/ducks/module.rb
duck_puncher-4.0.0 lib/duck_puncher/ducks/module.rb