class GuidedPath::GotoNode
Public Class Methods
new(args = {})
click to toggle source
Calls superclass method
# File lib/guided_path/goto_node.rb, line 8 def initialize(args = {}) super args = args.symbolize_keys raise("Must specify target for a goto node") if @next_node.empty? end
Public Instance Methods
to_hash()
click to toggle source
Calls superclass method
# File lib/guided_path/goto_node.rb, line 15 def to_hash output = {} output = super output[:type] = 'goto' output end