module Commander class Command class Options delegate :each, :to_a, :[], to: :to_h def class Commander::Command::Options end def try(key) self.to_h[key.to_sym] end def to_h __hash__ end end end end