lib/sugar-high/kind_of.rb in sugar-high-0.5.0 vs lib/sugar-high/kind_of.rb in sugar-high-0.5.1

- old
+ new

@@ -5,19 +5,19 @@ def kinda_file? any_kind_of?(File, Dir) end def any_kind_of? *kinds - kinds.all_kinds.each do |kind| - return true if self.kind_of? kind + kinds.all_kinds.each do |kind| + return true if self.kind_of? kind end false end def not_any_kind_of? *kinds - kinds.all_kinds.each do |kind| - return false if self.kind_of? kind + kinds.all_kinds.each do |kind| + return false if self.kind_of? kind end true end def kind_of_label? @@ -31,13 +31,13 @@ def kind_of_symbol? self.any_kind_of? Symbols, Symbol end end - -class Kinds + +class Kinds attr_accessor :kinds - + def initialize *kinds self.kinds = *kinds end -end \ No newline at end of file +end