Class: Picdown::Source
- Inherits:
-
Struct
- Object
- Struct
- Picdown::Source
- Defined in:
- lib/picdown/source.rb
Instance Attribute Summary collapse
-
#line ⇒ Object
Returns the value of attribute line.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#line ⇒ Object
Returns the value of attribute line
4 5 6 |
# File 'lib/picdown/source.rb', line 4 def line @line end |
#url ⇒ Object
Returns the value of attribute url
4 5 6 |
# File 'lib/picdown/source.rb', line 4 def url @url end |
Instance Method Details
#valid? ⇒ Boolean
5 6 7 |
# File 'lib/picdown/source.rb', line 5 def valid? url.match?(URI::DEFAULT_PARSER.make_regexp) end |