[Technical memo] What is "include" in Ruby?

Method to include module in class

If you include moduleA in classB, you can use the methods contained in moduleA in an instance of classB.

Recommended Posts

[Technical memo] What is "include" in Ruby?
[Ruby] What is true?
What is a Ruby module?
[Ruby] What is `!!` used for?
[Ruby] What is an instance?
String output method memo in Ruby
[Ruby on Rails] What is Bcrypt?
What is a snippet in programming?
What is @Autowired in Spring boot?
[Technical Note] What is Object Oriented?
Is there no type in Ruby?
What is a Ruby 2D array?
Ruby memo
What is a class in Java language (3 /?)
What is Swift? Findings obtained in 3 weeks
What is a class in Java language (1 /?)
What is a class in Java language (2 /?)
What is the main method in Java?
What is gem'foge', require: false in Gemfile?
What is Pullback doing in The Composable Architecture
What is Cubby
What is Docker?
What is null? ]
What is java
What is Keycloak
What is maven?
The ruby version is managed in the .rbenv / version file
What is Jackson?
What is Docker
What is self
[Ruby] What is next if? Skip processing in case of specific conditions in loop processing
What is Jenkins
What is ArgumentMatcher?
Class in Ruby
What is IM-Juggling?
What is params
What is SLF4J?
What is Facade? ??
What is Java <>?
What is Gradle?
What is POJO
What is Java
What is centOS
Heavy in Ruby! ??
What is RubyGem?
What is programming?
What is before_action?
What is Docker
[wip] Ruby memo
What is Byte?
[Ruby] What if you put each statement in each statement? ??
What is Tomcat
Data acquisition method memo when there is HashMap in HashMap
What impressed me as a beginner in writing Ruby
[Technical memo] About the advantages and disadvantages of Ruby
What is Maven Assembly?
What is `docker-compose up`?
What is a constructor?
What is vue cli
What is an interface?
About eval in Ruby