Method visibility

Get visibility for a method name.

View the Project on GitHub kachick/method_visibility

method_visibility

Description

Get visibility for a method name.

Features

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

Build Status

Build Status

Link

License

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