lib/heartml/server_effects.rb in heartml-1.0.0.beta7 vs lib/heartml/server_effects.rb in heartml-1.0.0.beta8
- old
+ new
@@ -34,11 +34,11 @@
end
end
# @param klass [Class]
# @return [void]
- def self.included(klass) # rubocop:disable Metrics
+ def self.included_extras(klass) # rubocop:disable Metrics
klass.attribute_binding "server-effect", :_server_effect_binding
klass.attribute_binding "iso-effect", :_iso_effect_binding
klass.singleton_class.attr_reader :directives
@@ -56,10 +56,10 @@
}
end
end
def _server_effect_binding(attribute:, node:)
- _iso_effect_binding(attribute: attribute, node: node)
+ _iso_effect_binding(attribute:, node:)
node.remove_attribute "host-effect"
end
def _iso_effect_binding(attribute:, node:) # rubocop:disable Metrics
syntax = attribute.value