class DashOverlord::UseCases::Context::StatusString

Public Instance Methods

method_missing(method, *args, &block) click to toggle source
Calls superclass method
# File lib/dash_overlord/use_cases/context.rb, line 48
def method_missing(method, *args, &block)
  last_char = method[-1]
  method_name = method[0...-1]

  if last_char == '!'
    replace(method_name)
  elsif last_char == '?'
    self == method_name
  else
    super
  end
end