Class: Markbridge::AST::Url
- Defined in:
- lib/markbridge/ast/url.rb
Overview
Represents a hyperlink/URL element.
Instance Attribute Summary collapse
-
#href ⇒ String?
readonly
The URL/href for this link.
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(href: nil) ⇒ Url
constructor
Create a new URL element.
Methods inherited from Element
Constructor Details
#initialize(href: nil) ⇒ Url
Create a new URL element.
21 22 23 24 |
# File 'lib/markbridge/ast/url.rb', line 21 def initialize(href: nil) super() @href = href end |
Instance Attribute Details
#href ⇒ String? (readonly)
Returns the URL/href for this link.
16 17 18 |
# File 'lib/markbridge/ast/url.rb', line 16 def href @href end |