Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Superclass: Object

frozen_string_literal: true

Constants

PATTERNS = { rb: { line_comment: /^\s*#/, begin_block_comment: /^=begin/, end_block_comment: /^=end/, class: /^\s*class\s+[_A-Z]/, method: /^\s*def\s+[_a-z]/, }, erb: { line_comment: %r{((^\s*<%#.*%>)|())}, }, css: { line_comment: %r{^\s*/\*.*\*/}, }, scss: { line_comment: %r{((^\s*/\*.*\*/)|(^\s*//))}, }, js: { line_comment: %r{^\s*//}, begin_block_comment: %r{^\s*/\*}, end_block_comment: %r{\*/}, method: /function(\s+[_a-zA-Z][\da-zA-Z]*)?\s*\(/, }, coffee: { line_comment: /^\s*#/, begin_block_comment: /^\s*###/, end_block_comment: /^\s*###/, class: /^\s*class\s+[_A-Z]/, method: /[-=]>/, } }

Attributes

[R] methods
[R] classes
[R] code_lines
[R] lines
Show files where this class is defined (1 file)
Register or log in to add new notes.