Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff oxidized-test/lib/oxidized/model/model.rb oxidized/lib/oxidized/model/model.rb
- 24,31c24,27
- < def comment(str = "# ")
- < @comment = if block_given?
- < yield
- < elsif not @comment
- < str
- < else
- < @comment
- < end
- ---
- > def comment(str = '# ')
- > return @comment if @comment
- >
- > @comment = block_given? ? yield : str
- 35c31
- < @prompt = regex || @prompt
- ---
- > @prompt || (@prompt = regex)
Advertisement
Add Comment
Please, Sign In to add comment