class Swamp::Element
Attributes
name[R]
selector[R]
Public Class Methods
new(name, selector)
click to toggle source
# File lib/swamp/elements/element.rb, line 3 def initialize(name, selector) @name = name @selector = selector end
Public Instance Methods
accessor()
click to toggle source
# File lib/swamp/elements/element.rb, line 15 def accessor raise NotImplementedError, "Must be implemented by subtypes" end
format(text)
click to toggle source
# File lib/swamp/elements/element.rb, line 31 def format(text) Swamp::Formatter.new.format(text) end
formatted_name()
click to toggle source
# File lib/swamp/elements/element.rb, line 27 def formatted_name format(name) end
method_signature()
click to toggle source
# File lib/swamp/elements/element.rb, line 11 def method_signature raise NotImplementedError, "Must be implemented by subtypes" end
prism_selector()
click to toggle source
# File lib/swamp/elements/element.rb, line 19 def prism_selector raise NotImplementedError, "Must be implemented by subtypes" end
prism_selector=(value)
click to toggle source
# File lib/swamp/elements/element.rb, line 23 def prism_selector=(value) raise NotImplementedError, "Must be implemented by subtypes" end