lib/ludy/tasks/preprocess_cpp/attr_builder.rb in ludy-0.1.10 vs lib/ludy/tasks/preprocess_cpp/attr_builder.rb in ludy-0.1.11
- old
+ new
@@ -1,8 +1,8 @@
module Kernel
-
+private
# just like attr_accessor for c++
def accessor type, *pros
(reader_only type, *pros) +
(writer_only type, *pros) +
(member_only type, *pros)
@@ -44,6 +44,6 @@
def member_only type, *pros
result = "#{@prefix}private:\n"
result << "#{@prefix}#{@indent}#{type} #{pros.map{|p|"#{p}_"}.join(", ")};\n"
end
-end # of ludy
+end # of Kernel