Module: Algorithms::Greedy::Solution
- Defined in:
- lib/algorithms/greedy.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
4 5 6 |
# File 'lib/algorithms/greedy.rb', line 4 def data @data end |
Instance Method Details
#initialize(data) ⇒ Object
6 7 8 |
# File 'lib/algorithms/greedy.rb', line 6 def initialize(data) @data = data end |