Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
end of files
  • Loading branch information
khusnetdinov committed Aug 17, 2016
1 parent b26540a commit 9b42c70
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -48,3 +48,6 @@ build-iPhoneSimulator/

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

# Jetbrains
.idea/*
1 change: 0 additions & 1 deletion patterns/creational/abstract_factory.rb
Expand Up @@ -77,4 +77,3 @@ def get_factory_class(method)
jungle = environment.get_factory(:jungle)
jungle.new_animal


1 change: 1 addition & 0 deletions patterns/creational/builder.rb
Expand Up @@ -62,3 +62,4 @@ def add_hard_disk(size_in_mb)
computer_builder.memory_size = '12mb'

computer = computer_builder.computer

4 changes: 0 additions & 4 deletions patterns/creational/factory.rb
Expand Up @@ -33,7 +33,3 @@ def get_shape(type)
shape_factory = ShapeFactory.new
square = shape_factory.get_shape :square





3 changes: 0 additions & 3 deletions patterns/creational/prototype.rb
Expand Up @@ -52,6 +52,3 @@ def get(key)

note = prototype.get(:full_note)




1 change: 1 addition & 0 deletions patterns/creational/singleton.rb
Expand Up @@ -21,3 +21,4 @@ class OtherSingleton
# Usage
s1 = Singleton.new
s2 = OtherSingleton.instance

3 changes: 2 additions & 1 deletion patterns/structural/adapter.rb
Expand Up @@ -25,4 +25,5 @@ def walk
# Usage

adaptor = Adaptor.new
adaptor.walk # => walk_as_adaptor and_sing_song_as_adaptor
adaptor.walk # => walk_as_adaptor and_sing_song_as_adaptor

3 changes: 2 additions & 1 deletion solid/dependency_inversion.rb
Expand Up @@ -44,4 +44,5 @@ def body
def print(formatter: JSONFormatter.new)
formatter.format body
end
end
end

1 change: 1 addition & 0 deletions solid/interface_segregation.rb
Expand Up @@ -93,3 +93,4 @@ def fix_computer
computer_internals.change_hard_drive
end
end

1 change: 0 additions & 1 deletion solid/liskov_substitution.rb
Expand Up @@ -80,4 +80,3 @@ def run
end
end


1 change: 1 addition & 0 deletions solid/open_close.rb
Expand Up @@ -81,3 +81,4 @@ def self.parse(file)
# Implementation
end
end

3 changes: 2 additions & 1 deletion threads/fibers.rb
Expand Up @@ -18,4 +18,5 @@
f.resume('First argument')
f.resume('Second argument')
f.resume
# f.resume call error if try call one more time fiber is dead
# f.resume call error if try call one more time fiber is dead

1 change: 0 additions & 1 deletion threads/gil.rb
Expand Up @@ -23,4 +23,3 @@
# $ jruby => 7521
# $ rbx => 8541


1 change: 0 additions & 1 deletion threads/mutex.rb
Expand Up @@ -44,4 +44,3 @@
# $ jruby => 10000
# $ rbx => 1000


3 changes: 2 additions & 1 deletion threads/rails.rb
Expand Up @@ -52,4 +52,5 @@ def threadsafe!
# being that if you have code that is not threadsafe, this mutex will prevent
# multiple threads from executing your controller code at the same time. When
# threadsafe! is set, this middleware is removed, and controller code can be
# executed in parallel.
# executed in parallel.

0 comments on commit 9b42c70

Please sign in to comment.