You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
347 B
16 lines
347 B
require 'test/unit'
|
|
require File.dirname(__FILE__) + '/../lib/brnumeros'
|
|
|
|
def tornar_metodos_publicos(clazz)
|
|
clazz.class_eval do
|
|
private_instance_methods.each { |instance_method| public instance_method }
|
|
private_methods.each { |method| public_class_method method }
|
|
end
|
|
end
|
|
|
|
def p80 text
|
|
p '*'*80
|
|
p text
|
|
yield if block_given?
|
|
end
|