fix the init also, was using first message twice

not advancing after first load
This commit is contained in:
Torsten Ruger
2018-04-07 00:14:02 +03:00
parent 3c90eb31c6
commit dd0d162ebf
5 changed files with 27 additions and 19 deletions

View File

@ -2,7 +2,7 @@ module Risc
class Builder
attr_reader :built
attr_reader :built , :compiler
def initialize(compiler)
@compiler = compiler
@ -75,7 +75,7 @@ module Risc
when Parfait::Object
type = Parfait.object_space.get_class_by_name( object.class.name.split("::").last.to_sym).instance_type
when Symbol
object = object.camelize
object = object.to_s.camelize.to_sym
clazz = Parfait.object_space.get_class_by_name(object)
raise "Not implemented/found object #{object}:#{object.class}" unless clazz
type = clazz.instance_type