Class: ObjiRenderer
- Inherits:
-
Object
- Object
- ObjiRenderer
- Defined in:
- ext/ae-rad/ae-rad-inspector.rb
Instance Method Summary collapse
- #code ⇒ Object
- #codeBegin ⇒ Object
- #codeEnd ⇒ Object
- #codeHinnerBegin ⇒ Object
- #codeHinnerEnd ⇒ Object
-
#initialize(_obji = nil) ⇒ ObjiRenderer
constructor
A new instance of ObjiRenderer.
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
#code ⇒ Object
1086 1087 1088 |
# File 'ext/ae-rad/ae-rad-inspector.rb', line 1086 def code return codeBegin, codeHinnerBegin, codeHinnerEnd, codeEnd end |
#codeBegin ⇒ Object
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 |
#codeEnd ⇒ Object
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 |
#codeHinnerBegin ⇒ Object
1098 1099 |
# File 'ext/ae-rad/ae-rad-inspector.rb', line 1098 def codeHinnerBegin end |
#codeHinnerEnd ⇒ Object
1101 1102 |
# File 'ext/ae-rad/ae-rad-inspector.rb', line 1101 def codeHinnerEnd end |