lib/volt/reactive/reactive_tags.rb
# Returns a reference to the tags on a method
Returns a reference to the tags on a method
Returns a reference to the tags on a method
def reactive_method_tag(method_name, tag_name, klass=self.class)
    return nil if !klass || !klass.method_defined?(:reactive_method_tag)
    tags = klass.instance_variable_get('@reactive_method_tags')
    if tags && (tag = tags[method_name.to_sym]) && (tag = tag.send(tag_name))
      return tag
    end
    return self.reactive_method_tag(method_name, tag_name, klass.superclass)
  end
def reactive_method_tag ( method_name , tag_name , klass = self . class ) return nil if ! klass || ! klass . method_defined? ( :reactive_method_tag ) tags = klass . instance_variable_get ( '@reactive_method_tags' ) if tags && ( tag = tags [ method_name . to_sym ] ) && ( tag = tag . send ( tag_name ) ) return tag end return self . reactive_method_tag ( method_name , tag_name , klass . superclass ) end
Returns a reference to the tags on a method
Returns a reference to the tags on a method
# Check to make sure we haven't gone above a class that has included # ReactiveTags
method_name
tag_name
klass
class