Parent

Files

Class/Module Index [+]

Quicksearch

Dragonfly::Job::Step

Attributes

args[R]
job[R]

Public Class Methods

abbreviation() click to toggle source

Dragonfly::Job::Fetch -> 'f'

# File lib/dragonfly/job.rb, line 39
def abbreviation
  @abbreviation ||= basename.scan(/[A-Z]/).join.downcase
end
basename() click to toggle source

Dragonfly::Job::Fetch -> 'Fetch'

# File lib/dragonfly/job.rb, line 31
def basename
  @basename ||= name.split('::').last
end
new(job, *args) click to toggle source
# File lib/dragonfly/job.rb, line 44
def initialize(job, *args)
  @job, @args = job, args
  init
end
step_name() click to toggle source

Dragonfly::Job::Fetch -> :fetch

# File lib/dragonfly/job.rb, line 35
def step_name
  @step_name ||= basename.gsub(/[A-Z]/){ "_#{$&.downcase}" }.sub('_','').to_sym
end

Public Instance Methods

init() click to toggle source
# File lib/dragonfly/job.rb, line 49
def init # To be overridden
end
inspect() click to toggle source
# File lib/dragonfly/job.rb, line 54
def inspect
  "#{self.class.step_name}(#{args.map{|a| a.inspect }.join(', ')})"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.