I\'m trying to use Ruby modules (mixins).
I have test.rb:
#!/usr/bin/env ruby require_relative \'lib/mymodule\' class MyApp include MyModule sel
In short: you need to extend instead of include the module.
extend
include
class MyApp extend MyModule self.hallo end
include provides instance methods for the class that mixes it in.
extend provides class methods for the class that mixes it in.
Give this a read.