Method: FlatMap::OpenMapper::Mounting#mounting
- Defined in:
- lib/flat_map/open_mapper/mounting.rb
#mounting(mounting_name, is_deep = true) ⇒ FlatMap::Mapping?
Return a mapping with the name that corresponds to passed mounting_name
, if it exists.
104 105 106 107 |
# File 'lib/flat_map/open_mapper/mounting.rb', line 104 def mounting(mounting_name, is_deep = true) list = is_deep ? all_mountings : mountings list.find{ |mount| mount.name == mounting_name } end |