Sha256: 22369571d915d51c03985590d6ea8c2d8247a3f20e4b6d2102b14a8e1e76bb80
Contents?: true
Size: 1.09 KB
Versions: 20
Compression:
Stored size: 1.09 KB
Contents
require 'xampl_generated_code/XamplAdHoc.rb' Xampl.set_default_persister_kind(:tokyo_cabinet) class Widget def Widget.indexed_attributes %w{ value gadget-value } end Xampl::TokyoCabinetPersister.add_lexical_indexs(Widget.indexed_attributes) def describe_yourself description = { 'value' => self.value } secondary_descriptions = [] puts "#{ __method__} #{ __LINE__ }" self.gadget.each do | gadget | puts "#{ __method__} #{ __LINE__ }" secondary_descriptions << { 'gadget-value' => gadget.value } puts "#{ __method__} #{ __LINE__ }" gadget.extra = 'fucking stupid change' puts "#{ __method__} #{ __LINE__ }" end puts "#{ __method__} #{ __LINE__ }" puts "\n\n\n\n#{ __FILE__ }:#{ __LINE__ } WIDGET(#{ self.pid })" # puts pp_xml puts "#{ __FILE__ }:#{ __LINE__ } description: #{ description.inspect }" secondary_descriptions.each do | secondary | puts "#{ __FILE__ }:#{ __LINE__ } secondary: #{ secondary.inspect }" end puts "\n\n\n" return description, secondary_descriptions end end
Version data entries
20 entries across 20 versions & 1 rubygems