Sha256: 5812f0a43853cb7d93e816cc4d1158fd8f3fe610c12b8d4e5edc1f6824146918

Contents?: true

Size: 281 Bytes

Versions: 5

Compression:

Stored size: 281 Bytes

Contents

# Test for variable assignment from an if statement
@products = if params[:category]
	Category.find(params[:category]).products
else
	Product.all
end

# Test for variable assignment from a block
response = begin
	if true?
		api_call(test)
	else
		rejected
	end
rescue
	'FALSE'
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby-beautify-0.97.4 spec/usage_scenarios/from_control_pretty.rb
ruby-beautify-0.97.3 spec/usage_scenarios/from_control_pretty.rb
ruby-beautify-0.97.2 spec/usage_scenarios/from_control_pretty.rb
ruby-beautify-0.97.1 spec/usage_scenarios/from_control_pretty.rb
ruby-beautify-0.97.0 spec/usage_scenarios/from_control_pretty.rb