Sha256: 6bf41085bb57845f13695d83773a39e2415627d9a749cb60bf06cd1c96d0e008
Contents?: true
Size: 619 Bytes
Versions: 21
Compression:
Stored size: 619 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] %>, :<%=de[1] %>, <%= de[2].nil? || de[2].strip.empty? ? 'nil' : '"' + de[2] + '"' %>)<% } %> <% end -%> <%= dsl.strip.gsub(/\n/,"\n ") %> end
Version data entries
21 entries across 21 versions & 1 rubygems