code guest register log in programs messages repl documentation source about privacy terms /up french production

documentation

Base64
examples
Base64.encode(:hello)
Base64.strict_encode(:hello)
Base64.urlsafe_encode(:hello)
class functions
Boolean
examples
!true
Boolean.new(:a)
false
true
instance functions
Class
examples
Boolean
Class.new(true)
List
Code
examples
Code.new
Context
examples
Context.new
Current
examples
Current.user
Current.user!
Current.user.id
Current.user!.id
instance functions
Date
examples
Date.new
Date.today
Date.tomorrow
Date.yesterday
class functions
instance functions
Decimal
examples
1.0
1e1.0
2.3e2
instance functions
Dictionary
examples
!{}
Dictionary.new
Dictionary.new(a: 1, b: 2).a
{ a: 1, b: 2 }.b
{}
{} == {}
{}.to_list
instance functions
Duration
examples
1.day.ago
1.day.from_now
2.days.ago
3.days.from_now
instance functions
Function
examples
sum = (a, b) => { a + b } sum(1, 2)
sum = (a, b = 2) => { a + b } sum(1)
sum = (a = 1, b = 2) => { a + b } sum()
sum = (a, b: 2) => { a + b } sum(1)
sum = (a: 1, b: 2) => { a + b } sum()
(a, b) => { a + b }.call(1, 2)
(a, b = 2) => { a + b }.call(1)
(a = 1, b = 2) => { a + b }.call
(a, b: 2) => { a + b }.call(1)
(a: 1, b: 2) => { a + b }.call
instance functions
Global
examples
p(nothing)
puts(:hello)
instance functions
Html
examples
Html.link_to(:code, "https://codedorian.com")
class functions
instance functions
Http
examples
Http.get("https://codedorian.com")
class functions
IdentifierList
Integer
examples
1
1000000000000000
1e100
instance functions
Json
examples
response = { body: '{"a": 1}' } Json.parse(response.body)
class functions
List
examples
List.new
[1, 2, 3]
[:a, :b, :c]
[]
instance functions
Message
examples
Message.create
Message.create!
Message.create!(body: :world)
Message.create!(subject: :hello)
Message.create!(subject: :hello, body: :world)
class functions
Nothing
examples
Nothing.new
nothing
Notification
examples
Notification.create
Notification.create!
Notification.create!(body: :world)
Notification.create!(subject: :hello)
Notification.create!(subject: :hello, body: :world)
Notification.create!(subject: :hello, path: :documentation, sound: :default)
class functions
Object
examples
Object.new
Object.new != Object.new
Object.new !== Object.new
Object.new == Object.new
Object.new === Object.new
class functions
instance functions
Parameter
Range
examples
(0...10).to_list
(1..10).to_list
instance functions
Smtp
instance functions
String
examples
"hello world"
1.to_string
:hello
String.new(:hello)
instance functions
Time
examples
Time.hour
Time.minutes
Time.now
class functions
instance functions
User
examples
User.find!("dorianmariecom")
User.find("dorianmarie")
User.find(:dorian)
class functions