CODES
NEW
ADD
SaveCode.net
Ranking
Extension
two ways of extending a class by class methods
Home
/
Codes
/
ruby
0
Two ways of extending a class by class methods
Copy
ruby
class
methods
Favourite
Share
By
Kerry Trantow
at Mar 30 2022
Related code examples
Ruby: Directory Class Methods
ruby list all class methods
Add class methods for ruby classes
Ruby: Reading from Files + File Class Methods
Defining the instance and class methods using define_method
class ruby
ruby class variable
rails link_to class
friendly class design
Lots of Array methods
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
rails class reminders belongs_to creator
how to inherit active record to a class ruby
dynamic methods
RoR Helper - Menu Item with Current Class
class inheriting multiple modules in ruby
how ruby methods take in a hash of attributes
Configure some behaviour through a separete configuration class
Return Array of Overridden Methods in Ruby Subclasses
Ruby: Extend String Class to Capitalize Every Single Word
Mixing in a Module immediately after an objects Singleton class
Search Methods in irb
how to call ruby private methods
Ruby class for easy version number natural order sorting
Ruby class and instance variables lifecycle across inheritance demo
find subset of two hashes in ruby
active record cache expensive methods
Just in time convenience methods
Execute an instance method of Object and call in its block instance methods of another object
rails pass variable between controller methods
Make Observers For Your Own Methods
RubyCocoa control methods for a four column NSTableView
how to add two variables into a hash ruby
Get string between two strings
Ruby: How to use the 5 main Find methods within Code Blocks
ruby get substring between two characters
Strip characters from between two delimiters
merge two binary trees sloved in ruby
is there a way of changing the key of a hash
meaning of {} in ruby
validates inclusion of rails
minimum of 3 elements
ruby number of week
Totalling All of a Variable
Find age of person
Require directory of files
Rollup Count of Events
Initialize a hash of arrays
Rails in groups of
height of a tree in ruby
ruby array of symbols shorthand
rails get list of tables
sort array of hashes ruby
ruby check length of string
ruby get haft of array
summation of fields ruby filter
Simple mocking of Ruby objects
roles of modules in Ruby
get directory of current file ruby
tower of hanoi problem in ruby
ruby get the first element of an array
get size of array in ruby
rails migration change type of column
ruby delete first element of array
ruby remove last element of string
iterate through values of an object rails
filter through array of arrays ruby
rails check log level of application
Rails link to an image instead of text
Animate a fade-out of a NSWindow with RubyCocoa
Simple Example of Threading in Ruby
A test of different Questions Ruby
how to I change the name of a column in rails
ruby merge array of hashes into one hash
ruby are spaces in keys of hashes allowed
ruby find index of element in array
order/format of params in method definition
What version of Ruby and Rails is this using?
Get one of your snippets from Snipplr
List of users for pay in Qustodian
Chart Total Proportion of Recent Tweets by Friend
ruby rails delete all of a model in console
ruby get the number of same element in array
ruby list of files in directory include subfolders
Execute arbitrary code with different level of error messaging
Turn CSV With Headers Into Array Of Hashes
Get unicode character of string in Ruby 1.8/1.9
get specific key value from array of hashes in ruby
Sending Apple Mail with Ruby and rb-appscript instead of Applescript
Ruby / Rails - example of if then statement... in a view file *.html.erb:
Make a Things Todo Out of the Current iTunes Net Radio Track
ruby how to print
array ruby
ruby hash except nested
ruby memory location
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