W3cubDocs

/Padrino

Class: Padrino::Admin::AccessControl::ProjectModule

Inherits:
Object
  • Object

Overview

Project Module class.

Instance Attribute Summary

Instance Method Summary

Constructor Details

#initialize(name, path, options = {}) ⇒ ProjectModule

Returns a new instance of ProjectModule

Instance Attribute Details

#name ⇒ Object (readonly)

Returns the value of attribute name

#options ⇒ Object (readonly)

Returns the value of attribute options

Instance Method Details

#human_name ⇒ Object

Returns the name of the project module humanize them for you.

#path(prefix = nil) ⇒ Object

Return the path of the project module. If a prefix given will be pre pended.

Examples:

# => /accounts/new
project_module.path
# => /admin/accounts
project_module.path("/admin")