Sha256: dab8454ce947e53639b4fbf3e3f60ce68367cc20a6bd1a351be13248123c8eba

Contents?: true

Size: 325 Bytes

Versions: 322

Compression:

Stored size: 325 Bytes

Contents

class Module
  if instance_methods[0].is_a?(Symbol)
    def instance_method_names(*args)
      instance_methods(*args).map(&:to_s)
    end

    def method_names(*args)
      methods(*args).map(&:to_s)
    end
  else
    alias_method :instance_method_names, :instance_methods
    alias_method :method_names, :methods
  end
end

Version data entries

322 entries across 278 versions & 28 rubygems

Version Path
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/activesupport-3.2.22.5/lib/active_support/core_ext/module/method_names.rb
activesupport-3.2.22.5 lib/active_support/core_ext/module/method_names.rb
activesupport-3.2.22.4 lib/active_support/core_ext/module/method_names.rb
activesupport-3.2.22.3 lib/active_support/core_ext/module/method_names.rb
activesupport-3.2.22.2 lib/active_support/core_ext/module/method_names.rb
activesupport-3.2.22.1 lib/active_support/core_ext/module/method_names.rb
classiccms-0.7.5 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/core_ext/module/method_names.rb
classiccms-0.7.4 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/core_ext/module/method_names.rb
classiccms-0.7.3 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/core_ext/module/method_names.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/core_ext/module/method_names.rb
activesupport-3.2.22 lib/active_support/core_ext/module/method_names.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.12/lib/active_support/core_ext/module/method_names.rb
activesupport-3.2.21 lib/active_support/core_ext/module/method_names.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/core_ext/module/method_names.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.18/lib/active_support/core_ext/module/method_names.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/core_ext/module/method_names.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.8/gems/activesupport-3.2.18/lib/active_support/core_ext/module/method_names.rb
apl-library-0.0.90 vendor/bundle/ruby/1.8/gems/activesupport-3.2.18/lib/active_support/core_ext/module/method_names.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.18/lib/active_support/core_ext/module/method_names.rb
activesupport-3.2.20 lib/active_support/core_ext/module/method_names.rb