module ADSL::Verification::Utils

Public Instance Methods

classname_for_classname(klass) click to toggle source
# File lib/adsl/verification/utils.rb, line 15
def classname_for_classname(klass)
  klass.is_a?(Module) ? klass.name : klass.to_s.camelize
end
infer_classname_from_varname(varname) click to toggle source
# File lib/adsl/verification/utils.rb, line 11
def infer_classname_from_varname(varname)
  varname.to_s.match(/^(\w+?)(?:_*\d+)?$/)[1].camelize
end
t(text) click to toggle source
# File lib/adsl/verification/utils.rb, line 7
def t(text)
  ADSL::Parser::ASTIdent.new :text => text.to_s
end