small fixes

This commit is contained in:
Torsten Ruger
2016-12-27 20:34:11 +02:00
parent b9b05378f5
commit aaa94f0743
5 changed files with 14 additions and 6 deletions

View File

@ -60,16 +60,20 @@ module Parfait
hash_code.to_sym
end
def initialize( object_class , hash = nil)
def initialize( object_class , hash = {})
super()
private_add_instance_variable :type ,:Type
self.object_class = object_class
hash.each do |name , type|
private_add_instance_variable(name , type) unless name == :type
end if hash
end
self.instance_methods = List.new
end
def to_s
""
end
def methods
m = self.instance_methods
return m if m