Class: Snack

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

Instance Attribute Summary collapse

Instance Attribute Details

#carbsObject

Returns the value of attribute carbs

Returns:

  • (Object)

    the current value of carbs



1
2
3
# File 'lib/snack_bar.rb', line 1

def carbs
  @carbs
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



1
2
3
# File 'lib/snack_bar.rb', line 1

def name
  @name
end