Method: Tap::Env#match
- Defined in:
- lib/tap/env.rb
#match(const_str, type = nil) ⇒ Object
89 90 91 92 |
# File 'lib/tap/env.rb', line 89 def match(const_str, type=nil) const_str = const_str.to_s const_str =~ Constant::CONST_REGEXP ? constants_by_const_name($1) : constants_by_path(const_str, type) end |