Class: Grabli::Intruder

Inherits:
Struct
  • Object
show all
Defined in:
lib/grabli.rb

Overview

When no subject specified by the user or the subject is a Symbol, we pass that object as a subject.

If the subject isn’t used it means we can add this permission as allowed. If it’s used, CURRENTLY, we assume that the given permission isn’t allowed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missingObject



83
84
85
86
# File 'lib/grabli.rb', line 83

def method_missing(*)
  self[:intruded] = true
  self
end

Instance Attribute Details

#intrudedObject

Returns the value of attribute intruded

Returns:

  • (Object)

    the current value of intruded



82
83
84
# File 'lib/grabli.rb', line 82

def intruded
  @intruded
end