lib/ole/support.rb in ruby-ole-1.2.12 vs lib/ole/support.rb in ruby-ole-1.2.12.1
- old
+ new
@@ -196,10 +196,10 @@
end
attr_reader :flags
def initialize flags
flags = self.class.parse_mode flags.to_str if flags.respond_to? :to_str
- raise ArgumentError, "invalid flags - #{flags.inspect}" unless Fixnum === flags
+ raise ArgumentError, "invalid flags - #{flags.inspect}" unless Integer === flags
@flags = flags
end
def writeable?
#(@flags & RDONLY) == 0