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 313
        def extract_dimensions(size)
          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.