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
set_callback

set_callback(name, *filter_list, &block) Instance Public methods Install a callback for the given event. set_callback :save, :before, :before_meth set_callback :save, :after, :after_meth, if: :condition set_callback :save, :around, ->(r, &block) { stuff; result = block.call; stuff } The second arguments indicates whether the callback is to be run :before, :after, or :around the event. If omitted, :before is assumed. This means the first example above can also be writte

skip_callback

skip_callback(name, *filter_list, &block) Instance Public methods Skip a previously set callback. Like set_callback, :if or :unless options may be passed in order to control when the callback is skipped. class Writer < Person skip_callback :validate, :before, :check_membership, if: -> { self.age > 18 } end

get_callbacks

get_callbacks(name) Instance Protected methods

set_callbacks

set_callbacks(name, callbacks) Instance Protected methods

new

new(&block) Class Public methods

call

call(target, value) Instance Public methods

build

build(callback_sequence, user_callback, user_conditions, chain_config) Class Public methods

build

build(callback_sequence, user_callback, user_conditions, chain_config) Class Public methods

build

build(callback_sequence, user_callback, user_conditions, chain_config, filter) Class Public methods

call

call(env) Instance Public methods

Popular Articles
unaccent unaccent is a text search dictionary that removes accents (diacritic signs) from lexemes. It's a filtering dictionary, which means its output is alwa
PhpBridgeSessionStorage class PhpBridgeSessionStorage extends NativeSessionStorage Allows session to be started by PHP and managed by Symfony. Methods __construct(Abs
Collapsibleset Creates a set of collapsible blocks of content Sets of collapsibles jQuery Mobile will visually st
hstore This module implements the hstore data type for storing sets of key/value pairs within a single PostgreSQL value. This can be useful in various scena
Inspiring Inspiring class Inspiring (View source) Methods static string quote() Get an inspiring quote.


Page 2175 of 11844

|< < Prev 2172 2173 2174 2175 2176 2177 2178 Next > >|
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions