Class: RMasm::Utility

Inherits:
Object show all
Defined in:
lib/rmasm/utility.rb

Overview

Common utility class

Constant Summary collapse

RESERVED_KEYWORDS =
%w{alias and begin break case class def defined do else elsif
end ensure false for if in module next nil not or redo
rescue retry return self super then true undef unless until
when while yield}

Class Method Summary collapse

Class Method Details

.is_ruby_keyword?(arg) ⇒ Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/rmasm/utility.rb', line 31

def self.is_ruby_keyword?(arg)
  RESERVED_KEYWORDS.include?(arg)
end