Class: Awestruct::Layouts

Inherits:
Array
  • Object
show all
Defined in:
lib/awestruct/layouts.rb

Instance Method Summary collapse

Instance Method Details

#find_matching(simple_name, output_extension) ⇒ Object



5
6
7
8
9
10
# File 'lib/awestruct/layouts.rb', line 5

def find_matching(simple_name, output_extension)
  $LOG.debug "find matching ( #{simple_name}, #{output_extension} )" if $LOG.debug?
  self.find{|e|
    ( e.simple_name == simple_name ) && ( e.output_extension == output_extension )
  }
end