Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

2402-1 #205

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

2402-1 #205

wants to merge 1 commit into from

Conversation

dbakovich
Copy link
Contributor

Номер

2402

Номер задания

1

Ссылка на видео с демо

https://www.youtube.com/watch?v=pUAe0_Okxlg

Комментарии

Впорядке


# Files act like a collection of lines
File.open('example_file.txt') do |file|
upcase_lines = file.map { |line| line.strip.upcase }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NestedIterators: AboutIteration#test_all_iteration_methods_work_on_any_collection_not_just_arrays contains iterators nested 2 deep. More info.

@anatoliliotych
Copy link
Member

change commit name messages, current messages looks not good.

@Saicheg
Copy link
Contributor

Saicheg commented Jul 12, 2018

+1 to @anatoliliotych comment

Copy link
Contributor Author

@dbakovich dbakovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@anatoliliotych, @Saicheg
changed commit name messages

attr_reader :values

def roll(number_of_rolls)
@values = (0...number_of_rolls).map { rand(1..6) }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace on Array initialization.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants