Method: RLTK::Lexer::Environment#set_flag
- Defined in:
- lib/rltk/lexer.rb
#set_flag(flag) ⇒ void
This method returns an undefined value.
Sets a flag in the current environment.
308 309 310 311 312 313 314 |
# File 'lib/rltk/lexer.rb', line 308 def set_flag(flag) if not @flags.include?(flag) @flags << flag end nil end |