Sha256: b44b14f9c198073be847b22a538c12d36f3115007a9382ce302c5dc86de53425
Contents?: true
Size: 469 Bytes
Versions: 29
Compression:
Stored size: 469 Bytes
Contents
class Views::DataPassingSystemSpec::ExtraVariables < Fortitude::Widgets::Html5 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