Justice League: Origins (5 years ago)
Batman and Robin #1
Swamp Thing #1
Batgirl #1-6 Batman and Robin #2-8 Catwoman #1-3
| def gcd(n, m) | |
| if (n > m) && (n * m > 0) | |
| r = n % m | |
| if r == 0 | |
| return m | |
| else | |
| return gcd(m, r) | |
| end | |
| end |
| Ancient History | |||
|---|---|---|---|
| Red Lanterns (2011) | #0 | Atrocitus: The Second Prophecy | |
| Dial H for Hero (2012) | #0 | ||
| Demon Knights (2011) | #0 | ||
| Demon Knights (2011) | #1 | ||
| Demon Knights (2011) | #2 | ||
| Demon Knights (2011) | #3 | ||
| Demon Knights (2011) | #4 | ||
| Demon Knights (2011) | #5 | ||
| Demon Knights (2011) | #6 |
Justice League: Origins (5 years ago)
Batman and Robin #1
Swamp Thing #1
Batgirl #1-6 Batman and Robin #2-8 Catwoman #1-3
| Empty file |
| # CBI Scraper (Offline) | |
| # It scraps comic book issues from the website - comicsbackissues.com - and print them to a single text file | |
| require 'oga' | |
| require 'pry' | |
| FILENAME = "cbi_batman.html" | |
| class ComicBook | |
| attr_accessor :year, :title, :issue_no, :writer, :penciller, :storyline |
#SOLID Principles with ruby examples
##SRP - Single responsibility principle A class should have only a single responsibility.
Every class should have a single responsibility, and that responsibility should be entirely encapsulated. All its services should be narrowly aligned with that responsibility, this embrace the high cohesion.
##OCP - Open/closed principle Software entities should be open for extension, but closed for modification.