Class: Roar::Rails::Formats::Path

Inherits:
String
  • Object
show all
Defined in:
lib/roar/rails/formats.rb

Instance Method Summary collapse

Instance Method Details

#namespaceObject



68
69
70
71
# File 'lib/roar/rails/formats.rb', line 68

def namespace
  return unless ns = self.match(/(.+)\/\w+$/)
  ns[1]
end