Module: Troles::Common::Config::StaticRoles

Defined in:
lib/troles/common/config/static_roles.rb

Instance Method Summary collapse

Instance Method Details

#static_roles=(value) ⇒ Object

Raises:

  • (ArgumentError)


4
5
6
7
# File 'lib/troles/common/config/static_roles.rb', line 4

def static_roles= value
  raise ArgumentError, "Must be a boolean" if !boolean?(value)
  @static_roles = value      
end

#static_roles?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/troles/common/config/static_roles.rb', line 9

def static_roles?
  @static_roles || false
end