Sha256: 73ae8ba51ad0f63827f41ba2fe2f6959aea6a3a6628f5c44896db55d3e707914
Contents?: true
Size: 499 Bytes
Versions: 29
Compression:
Stored size: 499 Bytes
Contents
class Views::DataPassingSystemSpec::ExtraVariablesRequested < Fortitude::Widgets::Html5 extra_assigns :use needs :foo def content show_var(:foo) show_var(:bar) show_var(:baz) end def show_var(name) method_call = begin send(name) rescue => e e.class.name end method_call = method_call instance_var = instance_variable_get("@#{name}").inspect p "#{name} method call: #{method_call}" p "#{name} instance var: #{instance_var}" end end
Version data entries
29 entries across 29 versions & 1 rubygems