What are good design techniques for this e.g. if the module adds some
instance variables to its included class?

module M
  def f
    @f
  end
  # how to initialize @f ?
end

class A
  include M
end
Thanks.