From: nobu.nokada@... Date: 2001-12-05T12:50:01+09:00 Subject: [ruby-talk:27514] Re: Package Naming At Wed, 5 Dec 2001 06:51:16 +0900, Dave Thomas wrote: > Also, until Matz gets > > module Text::Markup > > implemented, you end up with a fair amount of additional indentation > in deeply nested files > > module Text > module Markup > module OutputFormatter > > class ToHtml .... If you just meant its bad-looking, you could avoid it by separating definitions with module_eval. module Text end Text.module_eval do module Markup end end Text::Markup.module_eval do module OutputFormatter end end Text::Markup::OutputFormatter.module_eval do class ToHtml # definitions here... end end Text::Markup::OutputFormatter::ToHtml.module_eval do # or here... end Or shorter (but more cryptographically ;-P), module Text self end.module_eval { module Markup self end }.module_eval { module OutputFormatter self end }.module_eval { class ToHtml # ... end } # I don't say they're pretty. Nobu Nakada