Class: Kanrisuru::Core::User::Parser::Groups

Inherits:
Object
  • Object
show all
Defined in:
lib/kanrisuru/core/user/parsers/groups.rb

Class Method Summary collapse

Class Method Details

.parse(command) ⇒ Object



8
9
10
11
12
# File 'lib/kanrisuru/core/user/parsers/groups.rb', line 8

def self.parse(command)
  string = command.to_s
  string = string.split('groups=')[1]
  string.gsub(/\(/, '').gsub(/\)/, '').split(',')
end