direct index access helper for type
This commit is contained in:
@ -205,6 +205,12 @@ module Parfait
|
||||
@types.get(index)
|
||||
end
|
||||
|
||||
def type_for( name )
|
||||
index = variable_index(name)
|
||||
return nil unless index
|
||||
type_at(index)
|
||||
end
|
||||
|
||||
def inspect
|
||||
"Type[#{names.inspect}]"
|
||||
end
|
||||
|
Reference in New Issue
Block a user