CODES
NEW
ADD
SaveCode.net
Ranking
Extension
defining the instance and class methods using define_method
Home
/
Codes
/
ruby
0
Defining the instance and class methods using define_method
Copy
ruby
methods
class
Favourite
Share
By
Frances Schimmel
at Mar 23 2022
Related code examples
Ruby: Directory Class Methods
Execute an instance method of Object and call in its block instance methods of another object
Two ways of extending a class by class methods
ruby list all class methods
Ruby class and instance variables lifecycle across inheritance demo
Add class methods for ruby classes
Ruby: Reading from Files + File Class Methods
dynamic methods
Create and set instance variables from method parameters / arguments
Ruby instance variabnl get
Search Methods in irb
Lots of Array methods
how to call ruby private methods
active record cache expensive methods
Just in time convenience methods
ruby create engine using rspec and dummy
What version of Ruby and Rails is this using?
ruby get instance variables without accessor
class ruby
rails pass variable between controller methods
Make Observers For Your Own Methods
how ruby methods take in a hash of attributes
RubyCocoa control methods for a four column NSTableView
ruby class variable
rails link_to class
friendly class design
Return Array of Overridden Methods in Ruby Subclasses
ruby new class params
Ruby class + method documentation
creating a class in ruby
rails class note reminders
rails class sti reminders
ruby call class constant
Using Rake as a Library
Ruby: How to use the 5 main Find methods within Code Blocks
rails class reminders belongs_to creator
how to inherit active record to a class ruby
Using net http ping
HTML processing using nokogiri
Recurse directory tree and count pages in all pdf files using pdf-reader gem
ASCII and characters
get and to rails
RoR Helper - Menu Item with Current Class
class inheriting multiple modules in ruby
101 to using Time in Ruby
Encrypting / Decrypting Passwords using EzCrypto
Format strings like PRINT USING
Configure some behaviour through a separete configuration class
ruby and ruby ee
Upload and resize with RMagick
Grab current db schema using rake
Using Enumerable#select to create a specific array
Ruby: Extend String Class to Capitalize Every Single Word
Mixing in a Module immediately after an objects Singleton class
lazyload ruby and rails extensions
Time Zones By Country Using Rails TZInfo
Ruby class for easy version number natural order sorting
Ruby CSV writing and reading example with quotes, line breaks and commas in the fields
execute command and get cmd results
File listing and copying between directories
rails api only with postgress and rspec
Ruby difference between for and .each
ruby remove whitespace beginning and end
difference between is_a and kind_of ruby
TextMate bundle searching and pasting code
replace quotes & trim (left and right)
rails server set default port and ip
Scan and Require Ruby Files in Directory
Convert Email to Other Formats using Cloud API in Ruby
Encrypting passwords for a database using one-way hash technique (SHA1)
Ruby Code Sample to Create PDF from HTML Using REST API
ruby try catch variable and assign nil value
how to differentiate get and post when it has same name in rails
pg_ctl: no database directory specified and environment variable PGDATA unset
Ruby Ferret Simple Indexing And Search Example Part 2
Ruby Ferret simple indexing and search example part 1
Use regex to match a Ruby substring, and reference it like an index
Locate and play mp3 files with given pattern in path
Ruby Metaprogramming - Subclass a Method with Before/After Callbacks and alias_method
clean rails tmp file,log file and others file.then tar it!
parse URI object, and fetch response from it, in one step
list directory and create wget calls to build standalone html dirs
Sending Apple Mail with Ruby and rb-appscript instead of Applescript
Open a text file and re-write its contents into a new text file
Retrieve City, State, and Zip info from Google Geocoding service, by passing in a Zipcode
Search for remote gems from command line and view detailed results in textmate
ruby how to print
array ruby
ruby hash except nested
ruby memory location
get directory of current file ruby
Ruby ruby-2.6.3 is present on the following stacks: heroku 16
CreateShippingAddresses in ruby
ruby sqlite
.where ruby
height of a tree in ruby
hash.slice ruby
ruby print line break
ruby permutation
ruby division floating decimal
Code examples by languages
javascript
29k
python
23k
shell
16k
php
14k
java
8k
html
7k
sql
7k
css
7k
c#
4k
typescript
3k
c++
3k
c
3k
bash
2k
swift
909
go
903
vba
890
dart
866
r
746
ruby
681
latex
477
kotlin
440
lua
395
matlab
270
rust
213
groovy
183
assembly
174
basic
151
markdown
102
delphi
76
scala
70
haskell
64
ascii
62
actionscript
56
perl
54
twig
53
elixir
52
julia
46
d
37
octave
34
velocity
34
f#
29
clojure
23
pascal
23
less
23
prolog
19
diff
18
vhdl
18
objective-c
16
fortran
16
scheme
16
abap
16
brainfuck
15
tcl
14
sieve
12
factor
11
lisp
10
jinja2
10
haxe
9
oz
9
pug
9
spreadsheet
9
smarty
9
crystal
7
verilog
7
cobol
6
ocaml
6
protobuf
6
q
6
turtle
6
gas
5
rpm
5
erlang
4
jsx
4
forth
3
handlebars
3
eiffel
2
elm
2
gherkin
2
scss
2
slim
2
textile
2
postscript
1
coffeescript
1
cython
1
dtd
1
ebnf
1
haml
1
idl
1
mathematica
1
nsis
1
puppet
1
soy
1
squirrel
1
toml
1
systemverilog
1