Getting started
Casting type conversions
Arrays
Classes
Hashes
Blocks and procs and lambdas
Inheritance
Control flow
Strings
Symbols
Exceptions
Thread
Methods
Method missing
Numbers
Iteration
Regular Expressions and regex based operations
Comparable
Gem usage
Design patterns and idioms
Loading source files
Range
Comments
Operators
Operators
Special constants in Ruby
Modules
Ruby version manager
Gem creation / management
Constants
Constants
Define a constant
Modify a Constant
Constants cannot be defined in methods
Define and change constants in a class
Variable scope and visibility
rbenv
Environment variables
Singletons
File I/O
Time
Queue
Destructuring
IRB
Enumerators
C extensions
Struct
Metaprogramming
Dynamic evaluation
instance eval
Message passing
Keyword arguments
DateTime
Truthiness
JSON with Ruby
Implicit receives, understanding
Monkey patching
Introspection
Monkey patching
Refinements
Monkey patching in Ruby
Catching exceptions with begin rescue
Command line apps
Debugging
Pure RSpec JSON API testing
Recursion
Installation
ERB
Introspection
Random numbers
Getting started with Hanami
OptionParser
Splat operator
Multidimensional Arrays
Enumerable
Ruby access modifiers
Operating system or shell commands
Contributors

Constants cannot be defined in methods

suggest change
def say_hi
  MESSAGE = "Hello"
  puts MESSAGE
end

The above code results in an error: SyntaxError: (irb):2: dynamic constant assignment.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents