Sha256: 0f66229bc3b9da5085e466c0004c4c7cea5f20f928f14501a4a89f7355046123
Contents?: true
Size: 890 Bytes
Versions: 20
Compression:
Stored size: 890 Bytes
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 = [] self.gadget.each do | gadget | secondary_descriptions << { 'gadget-value' => gadget.value } end 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