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



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

def find_matching(simple_name, output_extension)
  # puts "find matching ( #{simple_name}, #{output_extension} )"
  self.find{|e| 
    ( e.simple_name == simple_name ) && ( e.output_extension == output_extension )
  }
end