Class: Racf::Commands::Listgrp::GroupMembersParser
- Inherits:
-
Object
- Object
- Racf::Commands::Listgrp::GroupMembersParser
- Defined in:
- lib/racf/commands/listgrp/group_members_parser.rb
Instance Attribute Summary collapse
-
#members ⇒ Object
readonly
Returns the value of attribute members.
Instance Method Summary collapse
-
#initialize ⇒ GroupMembersParser
constructor
A new instance of GroupMembersParser.
- #parse(line) ⇒ Object
Constructor Details
#initialize ⇒ GroupMembersParser
Returns a new instance of GroupMembersParser.
40 41 42 43 44 45 46 |
# File 'lib/racf/commands/listgrp/group_members_parser.rb', line 40 def initialize @current_line = nil @members = {} @current_member = nil super end |
Instance Attribute Details
#members ⇒ Object (readonly)
Returns the value of attribute members.
9 10 11 |
# File 'lib/racf/commands/listgrp/group_members_parser.rb', line 9 def members @members end |
Instance Method Details
#parse(line) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/racf/commands/listgrp/group_members_parser.rb', line 48 def parse(line) @current_line = line.strip case state_name when :nothing_processed process_headers when :headers_processed, :member_processed process_first_line when :first_line_processed process_second_line when :second_line_processed process_third_line end end |