Class: RDoc::Markdown::MemoEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/rdoc/markdown.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ans, pos) ⇒ MemoEntry

Returns a new instance of MemoEntry.



393
394
395
396
397
398
399
# File 'lib/rdoc/markdown.rb', line 393

def initialize(ans, pos)
  @ans = ans
  @pos = pos
  @result = nil
  @set = false
  @left_rec = false
end

Instance Attribute Details

#ansObject (readonly)

Returns the value of attribute ans.



401
402
403
# File 'lib/rdoc/markdown.rb', line 401

def ans
  @ans
end

#left_recObject

Returns the value of attribute left_rec.



402
403
404
# File 'lib/rdoc/markdown.rb', line 402

def left_rec
  @left_rec
end

#posObject (readonly)

Returns the value of attribute pos.



401
402
403
# File 'lib/rdoc/markdown.rb', line 401

def pos
  @pos
end

#resultObject (readonly)

Returns the value of attribute result.



401
402
403
# File 'lib/rdoc/markdown.rb', line 401

def result
  @result
end

#setObject (readonly)

Returns the value of attribute set.



401
402
403
# File 'lib/rdoc/markdown.rb', line 401

def set
  @set
end

Instance Method Details

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



404
405
406
407
408
409
410
# File 'lib/rdoc/markdown.rb', line 404

def move!(ans, pos, result)
  @ans = ans
  @pos = pos
  @result = result
  @set = true
  @left_rec = false
end