Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+2)

I am pretty familiar with Ruby, as I use it all day every day in my day job for about 5 years or so, and I really struggle with the debugging on this. I make all of my classes inherit from a DragonClass, which handles `method_missing`, so I can at least catch stupid typos. It's not much, but it helps a tiny bit

```

# frozen_string_literal: true

class DragonClass
  def method_missing(method, *_args, &_block)
    printf("You called #{method}, which doesn't exist. Exploding.\n")
    super
  end

  def respond_to_missing?(method_name, include_private = false)
    super
  end
end
```

Thanks a lot for this. I'll give it a try with my current project so I'll at least have something to catch my user errors.