Module: Pure::Util
- Defined in:
- lib/pure/util.rb
Class Method Summary collapse
Class Method Details
.file_line(backtrace) ⇒ Object
6 7 8 9 |
# File 'lib/pure/util.rb', line 6 def file_line(backtrace) file, line = backtrace.match(%r!\A(.*?):(\d+)!).captures return file, line.to_i end |
.to_camel_case(str) ⇒ Object
11 12 13 |
# File 'lib/pure/util.rb', line 11 def to_camel_case(str) str.split('_').map { |t| t.capitalize }.join end |