Class: Object

### Home Classes Methods

### In Files

- lib/backports/1.8.7/io/getbyte.rb
- lib/backports/1.8.7/io/readbyte.rb
- lib/backports/1.8.7/string/bytesize.rb
- lib/backports/1.8.7/string/each_byte.rb
- lib/backports/1.8.7/string/each_line.rb
- lib/backports/1.9.1/dir/to_path.rb
- lib/backports/1.9.1/enumerator/new.rb
- lib/backports/1.9.1/enumerator/with_object.rb
- lib/backports/1.9.1/file/open.rb
- lib/backports/1.9.1/file/to_path.rb
- lib/backports/1.9.1/hash/key.rb
- lib/backports/1.9.1/integer/magnitude.rb
- lib/backports/1.9.1/io/ungetbyte.rb
- lib/backports/1.9.1/proc/yield.rb
- lib/backports/1.9.1/range/cover.rb
- lib/backports/1.9.1/string/each_codepoint.rb
- lib/backports/1.9.1/string/getbyte.rb
- lib/backports/1.9.1/string/setbyte.rb
- lib/backports/1.9.2/float/infinity.rb
- lib/backports/1.9.2/float/nan.rb
- lib/backports/rails/kernel.rb

### Parent

BasicObject

### Methods

- #open_with_options_hash
- #try

### Class/Module Index

Quicksearch

- Prime
- Prime::EratosthenesGenerator
- Prime::EratosthenesSieve
- Prime::Generator23
- Prime::OldCompatibility
- Prime::PseudoPrimeGenerator
- Prime::TrialDivision
- Prime::TrialDivisionGenerator
- Backports
- Backports::MOST_EXTREME_OBJECT_EVER
- Backports::Random
- Backports::Random::Implementation
- Backports::Random::MT19937
- Backports::StdLib
- Backports::StdLib::LoadedFeatures
- Enumerator
- Enumerator::GeneratorBP
- Enumerator::Lazy
- Enumerator::Yielder
- Matrix
- Matrix::EigenvalueDecomposition
- Matrix::LUPDecomposition
- Enumerable
- Enumerable::Enumerator
- File
- File::Constants
- ARGF
- Array
- BasicObject
- Bignum
- Binding
- Complex
- Dir
- ENV
- Fixnum
- Float
- GC
- Hash
- IO
- Integer
- Kernel
- Math
- Method
- Module
- NilClass
- Numeric
- Object
- ObjectSpace
- OpenStruct
- Proc
- Process
- Random
- Range
- Regexp
- Set
- StopIteration
- String
- Struct
- Symbol
- UnboundMethod

No matching classes.

# Object

### Constants

Enumerator
INFINITY
NAN

### Public Instance Methods

open_with_options_hash(file, mode = nil, perm_or_options = Backports::Undefined) click to toggle source

    # File lib/backports/1.9.1/file/open.rb, line 7
    def open_with_options_hash(file, mode = nil, perm_or_options = Backports::Undefined)
      mode, perm = Backports.combine_mode_perm_and_option(mode, perm_or_options)
      perm ||= 0666 # Avoid error on Rubinius, see issue #52
      if block_given?
        open_without_options_hash(file, mode, perm){|f| yield f}
      else
        open_without_options_hash(file, mode, perm)
      end
    end

try(method_id, *args, &block) click to toggle source

Standard in rails. See official documentation

    # File lib/backports/rails/kernel.rb, line 3
    def try(method_id, *args, &block)
      send(method_id, *args, &block) unless self.nil?
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.