Skip to content
Browse files

Added SpecificationSet#classes method

  • Loading branch information...
1 parent 0b1d009 commit 1c75b04a6168b5a7e1065e235076f252f40d4c42 @krakatoa krakatoa committed Oct 24, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/protocol/specification_set.rb
View
4 lib/protocol/specification_set.rb
@@ -25,6 +25,10 @@ def uses_board
@object_specifications.select(&:uses_board).empty?
end
+ def classes
+ @object_specifications.select(&:class_name)
+ end
+
def [](class_name)
# TODO there should be a method to facilitate search in to spec_set for a class
object_specification = @object_specifications.select {|spec| spec.class_name == class_name }.first

0 comments on commit 1c75b04

Please sign in to comment.
Something went wrong with that request. Please try again.