class Psychic::Runner::HotReadTaskFactory
Public Class Methods
new(opts = {})
click to toggle source
Calls superclass method
Psychic::Runner::BaseRunner::new
# File lib/psychic/runner/hot_read_task_factory.rb, line 5 def initialize(opts = {}) super @tasks = hints['tasks'] || {} @known_tasks = @tasks.keys end
Public Instance Methods
task_for(task_name)
click to toggle source
Calls superclass method
Psychic::Runner::BaseRunner#task_for
# File lib/psychic/runner/hot_read_task_factory.rb, line 11 def task_for(task_name) return @tasks[task_name.to_s] if @tasks.include? task_name.to_s super end