Visibility predicates

Provide some predicate methods for to check method visibility.

View the Project on GitHub kachick/visibility_predicates

visibility_predicates

Description

Provide some predicate methods for to check method visibility.

Features

Usage

Overview

require 'visibility_predicates'

class Foo
  private; def modified_foobar; end
end

class Bar < Foo
  protected :modified_foobar
end

Bar.new.public_method? :modified_foobar    #=> false
Bar.new.protected_method? :modified_foobar #=> true
Bar.new.private_method? :modified_foobar   #=> false

Requirements

Install

gem install visibility_predicates

Build Status

Build Status

Link

License

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