lib/ruby-agi/command.rb in ruby-agi-1.0.2 vs lib/ruby-agi/command.rb in ruby-agi-1.1.0
- old
+ new
@@ -892,6 +892,17 @@
max_digit = max_digit.to_i
end
return max_digit
end
+
+ ############################################
+ ### More synthetic methods ###
+ ############################################
+
+ public
+ def jump_to(context, extension, priority)
+ set_context(context) if not context.nil?
+ set_extension(extension) if not extension.nil?
+ set_priority(priority) if not priority.nil?
+ end
end