(snippet) override def for ruby