lib/hyperstack/internal/component/props_wrapper.rb in hyper-component-1.0.alpha1.1 vs lib/hyperstack/internal/component/props_wrapper.rb in hyper-component-1.0.alpha1.2
- old
+ new
@@ -40,9 +40,10 @@
meth_name = aka || name
var_name = aka || instance_var_name_for(name)
param_definitions[name] = lambda do |props|
@component.instance_variable_set :"@#{var_name}", fetch_from_cache(name, param_type, props)
end
+ return if param_accessor_style == :hyperstack
if param_type == Proc
define_method(meth_name.to_sym) do |*args, &block|
props[name].call(*args, &block) if props[name]
end
else