lib/jazzy/source_mark.rb in jazzy-0.9.1 vs lib/jazzy/source_mark.rb in jazzy-0.9.2
- old
+ new
@@ -25,7 +25,17 @@
start_index = has_start_dash ? 2 : 0
end_index = has_end_dash ? -3 : -1
self.name = mark_string[start_index..end_index]
end
+
+ def empty?
+ !name && !has_start_dash && !has_end_dash
+ end
+
+ def copy(other)
+ self.name = other.name
+ self.has_start_dash = other.has_start_dash
+ self.has_end_dash = other.has_end_dash
+ end
end
end