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
new

new(s='FOO') Class Public methods

bar

bar(n) Instance Public methods

foo

foo(n) Instance Public methods

hello

hello() Instance Public methods

quux

quux() Instance Public methods

def_delegator

def_delegator(accessor, method, ali = method) Instance Public methods Alias for: def_instance_delegator

def_delegators

def_delegators(accessor, *methods) Instance Public methods Alias for: def_instance_delegators

def_instance_delegator

def_instance_delegator(accessor, method, ali = method) Instance Public methods Define method as delegator instance method with an optional alias name ali. Method calls to ali will be delegated to accessor.method. class MyQueue extend Forwardable attr_reader :queue def initialize @queue = [] end def_delegator :@queue, :push, :mypush end q = MyQueue.new q.mypush 42 q.queue #=> [42] q.push 23 #=> NoMethodError def_delegator

def_instance_delegators

def_instance_delegators(accessor, *methods) Instance Public methods Shortcut for defining multiple delegator methods, but with no provision for using a different name. The following two code samples have the same effect: def_delegators :@records, :size, :<<, :map def_delegator :@records, :size def_delegator :@records, :<< def_delegator :@records, :map def_delegators

delegate

delegate(hash) Instance Public methods Alias for: instance_delegate

Popular Articles
Multi-dimensional scaling An illustration of the metric and non-metric MDS on generated noisy data. The reconstructed points using the metric MDS and non metric MDS are sligh
tkinter.ttk.Notebook class tkinter.ttk.Notebook add(child, **kw) Adds a new tab to the notebook. If window is currently managed by the notebook but hidden, it is re
open - perl pragma to set default PerlIO layers for input and output NAME SYNOPSIS DESCRIPTION NONPERLIO FUNCTIONALITY IMPLEMENTATION DETAILS SEE ALSO NAME open - perl pragma to set default PerlIO layers for input an
perlmacosx - Perl under Mac OS X NAME SYNOPSIS DESCRIPTIONInstallation Prefix SDK support Universal Binary support 64-bit PPC support libperl and Prebinding Updating Apple's Perl Kn
Mvc\Model\ManagerInterface::getBelongsTo abstract public getBelongsTo (Phalcon\Mvc\ModelInterface $model) ...


Page 272 of 11844

|< < Prev 269 270 271 272 273 274 275 Next > >|
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions