class Commander::InternalCallableError

Internal error class to delay rendering help text This is required as the help command points directly to stdout In general this has a bit of a code smell to it, and should not be used publicly

Attributes

callable[RW]

Public Class Methods

new(msg = nil, &block) click to toggle source
Calls superclass method
# File lib/commander/error_handler.rb, line 12
def initialize(msg = nil, &block)
  super(msg)
  self.callable = block
end

Public Instance Methods

call() click to toggle source
# File lib/commander/error_handler.rb, line 17
def call
  callable.call if callable
end