Class: Blocks::InvalidPermissionsHandler
- Inherits:
-
Object
- Object
- Blocks::InvalidPermissionsHandler
- Defined in:
- lib/blocks/experimental/invalid_permissions_handler.rb
Constant Summary collapse
- LOG =
:log
- RAISE =
:raise
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(message) ⇒ InvalidPermissionsHandler
constructor
A new instance of InvalidPermissionsHandler.
Constructor Details
#initialize(message) ⇒ InvalidPermissionsHandler
Returns a new instance of InvalidPermissionsHandler.
13 14 15 |
# File 'lib/blocks/experimental/invalid_permissions_handler.rb', line 13 def initialize() send("handle_#{Blocks.}", ) end |
Class Method Details
.build(method_name, block_name) ⇒ Object
7 8 9 10 11 |
# File 'lib/blocks/experimental/invalid_permissions_handler.rb', line 7 def self.build(method_name, block_name) = "Cannot #{method_name} #{block_name}; #{block_name} is not in the permitted_blocks list" new() nil end |