generalize get_main and get_init to get_method

to get at those know methods that really
__must__ exists, hence the bang, raise if don't
about to add method missing and raise to the list
This commit is contained in:
2019-09-15 12:58:43 +03:00
parent b36ba42990
commit 7ee57f2b08
12 changed files with 100 additions and 77 deletions

View File

@ -63,6 +63,10 @@ module Parfait
type.add_method(foo)
assert_equal :foo , type.get_method(:foo).name
end
def test_space_get_method
test_get_instance
assert_equal :foo , @space.get_method!(:Object , :foo).name
end
def test_resolve_on_object
add_foo_to :Object
assert_equal :foo , object_type.resolve_method( :foo ).name