Module: Mext::Utilities::ClassMethods
- Defined in:
- lib/mext/utilities.rb
Instance Method Summary collapse
-
#from_yaml(yh) ⇒ Object
from_yaml(yaml_hash).
Instance Method Details
#from_yaml(yh) ⇒ Object
from_yaml(yaml_hash)
allows to create from a yaml hash
23 24 25 26 |
# File 'lib/mext/utilities.rb', line 23 def from_yaml(yh) args = yh.values new(*args) end |