Class: StimulusReflex::HTML::Document::Match
- Inherits:
-
Struct
- Object
- Struct
- StimulusReflex::HTML::Document::Match
- Defined in:
- lib/stimulus_reflex/html/document.rb
Instance Attribute Summary collapse
-
#element ⇒ Object
Returns the value of attribute element.
Instance Method Summary collapse
Instance Attribute Details
#element ⇒ Object
Returns the value of attribute element
42 43 44 |
# File 'lib/stimulus_reflex/html/document.rb', line 42 def element @element end |
Instance Method Details
#inner_html ⇒ Object
53 54 55 |
# File 'lib/stimulus_reflex/html/document.rb', line 53 def inner_html element&.inner_html(save_with: DEFAULT_HTML_WITHOUT_FORMAT) end |
#outer_html ⇒ Object
45 46 47 |
# File 'lib/stimulus_reflex/html/document.rb', line 45 def outer_html element&.to_html(save_with: DEFAULT_HTML_WITHOUT_FORMAT) end |
#to_html ⇒ Object
49 50 51 |
# File 'lib/stimulus_reflex/html/document.rb', line 49 def to_html element&.to_html(save_with: DEFAULT_HTML_WITHOUT_FORMAT) end |