Class: SimpleSplitter

Inherits:
Object
  • Object
show all
Defined in:
lib/contador.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ingredientsObject

Returns the value of attribute ingredients.



2
3
4
# File 'lib/contador.rb', line 2

def ingredients
  @ingredients
end

Instance Method Details

#splitObject



4
5
6
# File 'lib/contador.rb', line 4

def split
  ingredients.split(" ")
end