Class: EmailAddressValidator::RFC2822Parser::MemoEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/email_address_validator/rfc2822-parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ans, pos) ⇒ MemoEntry

Returns a new instance of MemoEntry.



210
211
212
213
214
215
# File 'lib/email_address_validator/rfc2822-parser.rb', line 210

def initialize(ans, pos)
  @ans = ans
  @pos = pos
  @uses = 1
  @result = nil
end

Instance Attribute Details

#ansObject (readonly)

Returns the value of attribute ans.



217
218
219
# File 'lib/email_address_validator/rfc2822-parser.rb', line 217

def ans
  @ans
end

#posObject (readonly)

Returns the value of attribute pos.



217
218
219
# File 'lib/email_address_validator/rfc2822-parser.rb', line 217

def pos
  @pos
end

#resultObject (readonly)

Returns the value of attribute result.



217
218
219
# File 'lib/email_address_validator/rfc2822-parser.rb', line 217

def result
  @result
end

#usesObject (readonly)

Returns the value of attribute uses.



217
218
219
# File 'lib/email_address_validator/rfc2822-parser.rb', line 217

def uses
  @uses
end

Instance Method Details

#inc!Object



219
220
221
# File 'lib/email_address_validator/rfc2822-parser.rb', line 219

def inc!
  @uses += 1
end

#move!(ans, pos, result) ⇒ Object



223
224
225
226
227
# File 'lib/email_address_validator/rfc2822-parser.rb', line 223

def move!(ans, pos, result)
  @ans = ans
  @pos = pos
  @result = result
end