w10schools
Login Register
  • Home
  • Tutorials
    • HTML, CSS
      • HTML, HTML5
      • CSS, CSS3
    • XML
    • JavaScript, AJAX
    • PHP
    • Ruby on Rails
      • Ruby
      • Rails
    • ASP.NET
      • ASP
      • C# .NET
    • Java
      • JSP
    • Databases
      • MySQL
      • MSSQL Server
      • Oracle
    • Web Server
      • Windows
      • Linux
      • Apache
      • IIS
    • Design
      • Dreamweaver
      • Flash
      • Photoshop
      • Fireworks
      • CorelDRAW
      • Illustrator
  • References
    • HTML
      • Bootstrap
    • CSS
      • CSS Selectors
      • Sass
    • JavaScript
    • Mobile Apps
      • Cordova
    • Ruby on Rails
      • Ruby
      • Rails
    • PHP
      • Function
      • Language
      • CodeIgniter
      • Phalcon
      • PHPUnit
      • Symfony
      • Drupal
      • Yii
      • Laravel
    • Perl
      • Perl
    • Python
      • Python
      • Django
      • NumPy
      • Pandas
      • scikit-image
      • scikit-learn
      • Statsmodels
      • Matplotlib
    • Lua
      • Lua
    • C, C++
      • C
      • C++
    • Server
      • Docker
      • Apache HTTP Server
      • Nginx
    • Database
      • PostgreSQL
    • Big Data
      • TensorFlow
    • Game Development
      • Phaser
      • LÖVE
  • Articles
    • News
    • General
      • Website Promotion
      • Online Advertising
      • Make Money Online
    • Editorials
    • Interviews
    • Web Roundups
  • Resources
    • Design
      • Fonts
      • Graphics
      • Vectors
      • Templates
      • UI (User Interface)
      • Brushes
      • Patterns, Backgrounds
      • Textures
    • Web Development
      • HTML, CSS
      • XML
      • JavaScript, AJAX
      • Ruby on Rails
      • PHP
      • Java
      • .NET
      • Python
      • Perl
      • Flash
    • Mobile Application Development
      • Mobile Development Tools
      • Swift
    • Online Services
      • Online Storage
      • Web Hosting
  • Tools
    • Generators
blank?

blank?() Instance Public methods nil is blank: nil.blank? # => true @return [true]

duplicable?

duplicable?() Instance Public methods nil is not duplicable: nil.duplicable? # => false nil.dup # => TypeError: can't dup NilClass

to_param

to_param() Instance Public methods Returns self.

try

try(*args) Instance Public methods Calling try on nil always returns nil. It becomes specially helpful when navigating through associations that may return nil. nil.try(:name) # => nil Without try @person && !@person.children.blank? && @person.children.first.name With try @person.try(:children).try(:first).try(:name)

try!

try!(*args) Instance Public methods

ago

ago(time = ::Time.current) Instance Public methods Reads best without arguments: 10.minutes.ago until

byte

byte() Instance Public methods Alias for: bytes

bytes

bytes() Instance Public methods Enables the use of byte calculations and declarations, like 45.bytes + 2.6.megabytes byte

day

day() Instance Public methods Alias for: days

days

days() Instance Public methods Also aliased as: day

Popular Articles
mod_nw_ssl Apache Module mod_nw_ssl Description: Enable SSL encryption for NetWare Status: Base ModuleIdentifier: nwssl_module SourceFile: mod_nw_ssl.c Compati
$PERL_VERSION $PERL_VERSION
core.files.storage.Storage.delete() delete(name) [source] Deletes the file referenced by name. If deletion is not supported on the target storage system this will raise NotImplemente
os.path.exists() os.path.exists(path) Return True if path refers to an existing path or an open file descriptor. Returns False for broken symbolic links. On some p
Filter::getFilters public getFilters () Return the user-defined filters in the instance


Page 2252 of 11844

|< < Prev 2249 2250 2251 2252 2253 2254 2255 Next > >|
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions