Sha256: 1470f228cbee8334f03e429312e13cc85e4d6adf8779144fa909692b47f94b28
Contents?: true
Size: 622 Bytes
Versions: 47
Compression:
Stored size: 622 Bytes
Contents
<%# coding: UTF-8 %> class Instance < WEEL connectionwrapper ConnectionWrapper <% for key, value in endpoints -%> endpoint :<%= key %> => <%= CPEE::ValueHelper::parse(value).inspect %> <% end -%> <% for key, value in dataelements -%> data :<%= key %> => <%= CPEE::ValueHelper::parse(value).inspect %> <% end -%> <% unless positions.nil? || positions.empty? -%> search <% positions.each_with_index { |de,i| %><%= (i > 0 ? ', ' : '') %>Position.new(:<%= de[0] %>, 0, :<%=de[1] %>, <%= de[2].nil? || de[2].strip.empty? ? 'nil' : '"' + de[2] + '"' %>)<% } %> <% end -%> <%= dsl.strip.gsub(/\n/,"\n ") %> end
Version data entries
47 entries across 32 versions & 1 rubygems