Class: SugoiAliasesUpdator::LineParser
- Inherits:
-
Object
- Object
- SugoiAliasesUpdator::LineParser
- Defined in:
- lib/sugoi_aliases_updator/line_parser.rb
Instance Attribute Summary collapse
-
#emails_line ⇒ Object
Returns the value of attribute emails_line.
-
#is_aliaes_line ⇒ Object
Returns the value of attribute is_aliaes_line.
-
#label ⇒ Object
Returns the value of attribute label.
-
#margin ⇒ Object
Returns the value of attribute margin.
Instance Method Summary collapse
-
#initialize(line) ⇒ LineParser
constructor
A new instance of LineParser.
Constructor Details
#initialize(line) ⇒ LineParser
Returns a new instance of LineParser.
5 6 7 8 9 10 |
# File 'lib/sugoi_aliases_updator/line_parser.rb', line 5 def initialize(line) @is_aliaes_line = /^(.*):([[:blank:]]*)\n?([\w@\., -]*)/ === line @label = $1 @margin = $2 @emails_line = $3 end |
Instance Attribute Details
#emails_line ⇒ Object
Returns the value of attribute emails_line.
3 4 5 |
# File 'lib/sugoi_aliases_updator/line_parser.rb', line 3 def emails_line @emails_line end |
#is_aliaes_line ⇒ Object
Returns the value of attribute is_aliaes_line.
3 4 5 |
# File 'lib/sugoi_aliases_updator/line_parser.rb', line 3 def is_aliaes_line @is_aliaes_line end |
#label ⇒ Object
Returns the value of attribute label.
3 4 5 |
# File 'lib/sugoi_aliases_updator/line_parser.rb', line 3 def label @label end |
#margin ⇒ Object
Returns the value of attribute margin.
3 4 5 |
# File 'lib/sugoi_aliases_updator/line_parser.rb', line 3 def margin @margin end |