Method: RuboCop::Cop::Utils::FormatString::FormatSequence#initialize
- Defined in:
- lib/rubocop/cop/utils/format_string.rb
#initialize(match) ⇒ FormatSequence
Returns a new instance of FormatSequence.
50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/rubocop/cop/utils/format_string.rb', line 50 def initialize(match) @source = match[0] @begin_pos = match.begin(0) @end_pos = match.end(0) @flags = match[:flags].to_s + match[:more_flags].to_s @width = match[:width] @precision = match[:precision] @name = match[:name] @type = match[:type] @arg_number = match[:arg_number] end |