Class: Markdownlyze::Elements::RemoteImage

Inherits:
Base
  • Object
show all
Defined in:
lib/markdownlyze/elements/remote_image.rb

Instance Attribute Summary

Attributes inherited from Base

#skip_until

Instance Method Summary collapse

Methods inherited from Base

#initialize, #options

Constructor Details

This class inherits a constructor from Markdownlyze::Elements::Base

Instance Method Details

#valueObject



4
5
6
# File 'lib/markdownlyze/elements/remote_image.rb', line 4

def value
  @line.match(/\!\[.*\]\((?<url>.*)\)/).named_captures.fetch('url')
end