Get visibility for a method name.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
.yardopts
Gemfile
MIT-LICENSE
README.md
Rakefile
method_visibility.gemspec

README.md

method_visibility

Build Status Gem Version

Description

Get visibility for a method name.

Features

  • Kernel#method_visibility
  • Module#instance_method_visibility

Usage

Overview

require 'method_visibility'

class Foo
  private; def modified_foobar; end
end

class Bar < Foo
  protected :modified_foobar
end

Bar.new.method_visibility :modified_foobar    #=> :protected (1.8.7: String, 1.9~: Symbol)

Requirements

Install

gem install method_visibility

Link

License

The MIT X11 License
Copyright (c) 2012 Kenichi Kamiya
See MIT-LICENSE for further details.