lib/xcmultilingual/bundle.rb in xcmultilingual-0.3.0 vs lib/xcmultilingual/bundle.rb in xcmultilingual-0.3.1
- old
+ new
@@ -1,11 +1,10 @@
module Xcmultilingual
- Bundle = Struct.new("Bundle", :relative_path, :name, :tables) do
+ Bundle = Struct.new("Bundle", :name, :tables) do
def description
- name_description = name.nil? ? "MAIN BUNDLE" : name
- relative_path_description = relative_path.nil? ? "NO RELATIVE PATH" : relative_path
+ name_description = name.nil? ? "PROJECT BUNDLE" : name
tables_description = tables.map { |table| table.description }.join(" / ")
- "[#{name_description}]\nname: #{name_description}, relative_path: #{relative_path_description}, tables: #{tables_description}"
+ "[#{name_description}]\nname: #{name_description}, tables: #{tables_description}"
end
end
Table = Struct.new("Table", :name, :keys) do
def description