Class: ObjiRenderer

Inherits:
Object
  • Object
show all
Defined in:
ext/ae-rad/ae-rad-inspector.rb

Instance Method Summary collapse

Constructor Details

#initialize(_obji = nil) ⇒ ObjiRenderer

Returns a new instance of ObjiRenderer.



1078
1079
1080
1081
1082
1083
1084
# File 'ext/ae-rad/ae-rad-inspector.rb', line 1078

def initialize(_obji=nil)
  if _obji
    @obji = _obji
  else
    exit
  end
end

Instance Method Details

#codeObject



1086
1087
1088
# File 'ext/ae-rad/ae-rad-inspector.rb', line 1086

def code
  return codeBegin, codeHinnerBegin, codeHinnerEnd, codeEnd
end

#codeBeginObject



1090
1091
1092
1093
1094
1095
1096
# File 'ext/ae-rad/ae-rad-inspector.rb', line 1090

def codeBegin
  code_rb = ''
  @obji.requires.each_key do |key|
    code_rb = code_rb, "require '",key,"'\n"
  end
  return code_rb
end

#codeEndObject



1104
1105
1106
# File 'ext/ae-rad/ae-rad-inspector.rb', line 1104

def codeEnd
  code_rb = code_rb, "\n", @obji.agobj_start.renderer.classCode
end

#codeHinnerBeginObject



1098
1099
# File 'ext/ae-rad/ae-rad-inspector.rb', line 1098

def codeHinnerBegin
end

#codeHinnerEndObject



1101
1102
# File 'ext/ae-rad/ae-rad-inspector.rb', line 1101

def codeHinnerEnd
end