class Pakyow::Data::UnknownCommand
Public Instance Methods
contextual_message()
click to toggle source
# File lib/pakyow/data/errors.rb, line 104 def contextual_message if commands.any? String.new( <<~MESSAGE The following commands are defined for #{@context.__object_name.name}: MESSAGE ).tap do |message| commands.keys.each do |command| message << " * #{command}\n" end end else String.new( <<~MESSAGE No commands are defined for #{@context.__object_name.name}. MESSAGE ) end end
Private Instance Methods
commands()
click to toggle source
# File lib/pakyow/data/errors.rb, line 126 def commands @context.commands end