Class: Rabarber::Input::Roles

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

Instance Attribute Summary

Attributes inherited from Base

#error_message, #error_type

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)


10
11
12
# File 'lib/rabarber/input/roles.rb', line 10

def valid?
  value.all? { |role_name| Rabarber::Input::Role.new(role_name).valid? }
end

#valueObject



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

def value
  Array(super)
end