module MyProjectPage module Version def to_s [major, minor, patch].join('.') end def full to_s end def major 2 end def minor 1 end def patch 2 end extend self end end