lib/flay.rb in flay-2.3.0 vs lib/flay.rb in flay-2.3.1
- old
+ new
@@ -13,11 +13,11 @@
alias :binread :read unless RUBY19
end
end
class Flay
- VERSION = "2.3.0" # :nodoc:
+ VERSION = "2.3.1" # :nodoc:
##
# Returns the default options.
def self.default_options
@@ -369,9 +369,10 @@
split_and_group(data).each do |subdata|
n = subdata.find_index { |s| s !~ /^#/ }
comment, code = subdata[0..n-1], subdata[n..-1]
+ comment = [] if n == 0
comments << comment
codes << code
end