class Algorithmable::Cups::NestedListsProblem::NestedListImp
Attributes
value[RW]
Public Class Methods
new(collection = [])
click to toggle source
# File lib/algorithmable/cups/nested_lists_problem.rb, line 57 def initialize(collection = []) @collection = collection end
Public Instance Methods
<<(other)
click to toggle source
# File lib/algorithmable/cups/nested_lists_problem.rb, line 65 def <<(other) @collection << other end
each(&block)
click to toggle source
# File lib/algorithmable/cups/nested_lists_problem.rb, line 73 def each(&block) @collection.each(&block) end
integer?()
click to toggle source
# File lib/algorithmable/cups/nested_lists_problem.rb, line 61 def integer? @collection.is_a? Fixnum end