module Symbiote::Elements
Public Instance Methods
method_missing(method, *args)
click to toggle source
Calls superclass method
# File lib/symbiote/elements.rb, line 26 def method_missing(method, *args) abort("The method '#{method}' is not a recognized element method.") super end
respond_to_missing?(method)
click to toggle source
Calls superclass method
# File lib/symbiote/elements.rb, line 31 def respond_to_missing?(method) super end
Private Instance Methods
define_element_accessor(identifier, *locator, element, &block)
click to toggle source
# File lib/symbiote/elements.rb, line 44 def define_element_accessor(identifier, *locator, element, &block) define_method(identifier.to_s.to_sym) do |*values| if block_given? instance_exec(*values, &block) else no_locator(self.class, identifier) if empty_locator(locator, values) locator = values if locator[0].nil? reference_element(element, locator) end end end
parse_signature(signature)
click to toggle source
# File lib/symbiote/elements.rb, line 56 def parse_signature(signature) [signature.shift, signature.shift] end