method

extract_dimensions

Importance_0
extract_dimensions(size) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionview/lib/action_view/helpers/asset_tag_helper.rb, line 323
        def extract_dimensions(size)
          size = size.to_s
          if size =~ %{\A\d+x\d+\z}
            size.split('x')
          elsif size =~ %{\A\d+\z}
            [size, size]
          end
        end
Register or log in to add new notes.