Class: RDoc::Markdown::Literals::MemoEntry
- Inherits:
-
Object
- Object
- RDoc::Markdown::Literals::MemoEntry
- Defined in:
- lib/rdoc/markdown/literals_1_9.rb
Instance Attribute Summary collapse
-
#ans ⇒ Object
readonly
Returns the value of attribute ans.
-
#left_rec ⇒ Object
Returns the value of attribute left_rec.
-
#pos ⇒ Object
readonly
Returns the value of attribute pos.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#set ⇒ Object
readonly
Returns the value of attribute set.
Instance Method Summary collapse
-
#initialize(ans, pos) ⇒ MemoEntry
constructor
A new instance of MemoEntry.
- #move!(ans, pos, result) ⇒ Object
Constructor Details
#initialize(ans, pos) ⇒ MemoEntry
Returns a new instance of MemoEntry.
222 223 224 225 226 227 228 |
# File 'lib/rdoc/markdown/literals_1_9.rb', line 222 def initialize(ans, pos) @ans = ans @pos = pos @result = nil @set = false @left_rec = false end |
Instance Attribute Details
#ans ⇒ Object (readonly)
Returns the value of attribute ans.
230 231 232 |
# File 'lib/rdoc/markdown/literals_1_9.rb', line 230 def ans @ans end |
#left_rec ⇒ Object
Returns the value of attribute left_rec.
231 232 233 |
# File 'lib/rdoc/markdown/literals_1_9.rb', line 231 def left_rec @left_rec end |
#pos ⇒ Object (readonly)
Returns the value of attribute pos.
230 231 232 |
# File 'lib/rdoc/markdown/literals_1_9.rb', line 230 def pos @pos end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
230 231 232 |
# File 'lib/rdoc/markdown/literals_1_9.rb', line 230 def result @result end |
#set ⇒ Object (readonly)
Returns the value of attribute set.
230 231 232 |
# File 'lib/rdoc/markdown/literals_1_9.rb', line 230 def set @set end |
Instance Method Details
#move!(ans, pos, result) ⇒ Object
233 234 235 236 237 238 239 |
# File 'lib/rdoc/markdown/literals_1_9.rb', line 233 def move!(ans, pos, result) @ans = ans @pos = pos @result = result @set = true @left_rec = false end |