Tagged Questions
3
votes
2answers
63 views
Review of OOP in Ruby class
Could you please review the following class products?
It should tell me whether the product is taxable or imported. Name should indicate if the product is imported or certain keywords should tell ...
3
votes
1answer
111 views
Needs code review for class implementation
could you please review the code for the implementation of the class (link: Ruby. Code review. Working alone on the code)
require_relative 'robot'
class Game
def initialize
# initialize values
...
0
votes
2answers
128 views
Ruby. Code review. Working alone on the code
I'm working alone on my code, trying to learn Ruby as I go.
Class Robot is supposed to be instantiated with the position on a map, and whether it is facing toward a side of the map. It has a couple ...
3
votes
1answer
123 views
Delegating to a lazily loaded object in Ruby
I have an API that takes a class as a configuration parameter, but I don't want to load the class (I'm using Rails) at the time that I'm setting up the API. I figured I could get around this by ...