Class: Nutriscore::Common::Nutrients
- Inherits:
-
Object
- Object
- Nutriscore::Common::Nutrients
- Defined in:
- lib/nutriscore/common/nutrients.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(h) ⇒ Nutrients
constructor
A new instance of Nutrients.
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m) ⇒ Object (private)
21 22 23 |
# File 'lib/nutriscore/common/nutrients.rb', line 21 def method_missing(m) @h[m.to_sym] end |