Class: Dang::Parser::MemoEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/dang/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ans, pos) ⇒ MemoEntry

Returns a new instance of MemoEntry.



212
213
214
215
216
217
218
# File 'lib/dang/parser.rb', line 212

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.



220
221
222
# File 'lib/dang/parser.rb', line 220

def ans
  @ans
end

#left_recObject

Returns the value of attribute left_rec.



221
222
223
# File 'lib/dang/parser.rb', line 221

def left_rec
  @left_rec
end

#posObject (readonly)

Returns the value of attribute pos.



220
221
222
# File 'lib/dang/parser.rb', line 220

def pos
  @pos
end

#resultObject (readonly)

Returns the value of attribute result.



220
221
222
# File 'lib/dang/parser.rb', line 220

def result
  @result
end

#setObject (readonly)

Returns the value of attribute set.



220
221
222
# File 'lib/dang/parser.rb', line 220

def set
  @set
end

Instance Method Details

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



223
224
225
226
227
228
229
# File 'lib/dang/parser.rb', line 223

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