Class: ERB

Inherits:
Object
  • Object
show all
Defined in:
lib/assert2/ripdoc.rb

Overview

~ :on_ident ~ :on_const ~ :on_semicolon ~ :on_op ~ :on_int ~ :on_comma ~ :on_lparen ~ :on_rparen ~ :on_backref ~ :on_period ~ :on_lbracket ~ :on_rbracket ~ :on_rbrace ~ :on_qwords_beg ~ :on_words_sep

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#linenoObject

Returns the value of attribute lineno.



405
406
407
# File 'lib/assert2/ripdoc.rb', line 405

def lineno
  @lineno
end

Instance Method Details

#result(b) ⇒ Object



408
409
410
# File 'lib/assert2/ripdoc.rb', line 408

def result(b)
  eval(@src, b, (@filename || '(erb)'), (@lineno || 1))
end