Class: Lustr::Runtime

Inherits:
EvalContext show all
Defined in:
lib/lustr/runtime.rb

Instance Method Summary collapse

Methods inherited from EvalContext

#current_gadget, #for_gadget

Constructor Details

#initializeRuntime

Returns a new instance of Runtime.



18
19
20
# File 'lib/lustr/runtime.rb', line 18

def initialize
	super
end

Instance Method Details

#attach_controllerObject



32
33
34
# File 'lib/lustr/runtime.rb', line 32

def attach_controller()
	# mostly for subclasses
end

#init_gadget(gadget, builder) ⇒ Object



28
29
30
# File 'lib/lustr/runtime.rb', line 28

def init_gadget(gadget, builder)
	super
end

#is_runtime?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/lustr/runtime.rb', line 36

def is_runtime?
	true
end

#show(parse_context) ⇒ Object



22
23
24
25
26
# File 'lib/lustr/runtime.rb', line 22

def show(parse_context)
	root=parse_context.gadget_builders[nil].build_all(self)
	
	root.show
end