module Flowing

Constants

VERSION

Public Class Methods

explain(action) click to toggle source
# File lib/flowing.rb, line 8
def explain(action)
  action_class = "Flowing::Actions::#{action.to_s.camelize}".constantize
  desc = action_class.instance_variable_get(:@desc)
  readers = action_class.context_readers
  unless readers.empty?
    desc << ". It reads #{[readers].join(', ')}"
  end
  desc
end