Method: RuboCop::Cop::HashTransformMethod::Autocorrection.from_hash_brackets_map
- Defined in:
- lib/rubocop/cop/mixin/hash_transform_method/autocorrection.rb
.from_hash_brackets_map(node, match) ⇒ Object
12 13 14 |
# File 'lib/rubocop/cop/mixin/hash_transform_method/autocorrection.rb', line 12 def self.from_hash_brackets_map(node, match) new(match, node.children.last, 'Hash['.length, ']'.length) end |