Class: Rabarber::Input::AuthorizationContext

Inherits:
Base
  • Object
show all
Defined in:
lib/rabarber/input/authorization_context.rb

Instance Attribute Summary

Attributes inherited from Base

#error_message, #error_type, #value

Instance Method Summary collapse

Methods inherited from Base

#initialize, #process

Constructor Details

This class inherits a constructor from Rabarber::Input::Base

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/rabarber/input/authorization_context.rb', line 6

def valid?
  Rabarber::Input::Context.new(value).valid? || Rabarber::Input::DynamicRule.new(value).valid?
end