prepend instead of include ?
module MeFirst
def report
puts "Hello from module!"
end
end
class Person
prepend MeFirst
def report
puts "Hello from class"
end
end
p = Person.new
p.report
prepend instead of include ?
module MeFirst
def report
puts "Hello from module!"
end
end
class Person
prepend MeFirst
def report
puts "Hello from class"
end
end
p = Person.new
p.report
For further actions, you may consider blocking this person and/or reporting abuse
Timeless DEV post...
The most used technology by developers is not Javascript.
It's not Python or HTML.
It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.
I'm talking about Git and version control of course.
Gianluca -
stackence-admin -
Souvik Paul -
arnold-wafula -
Once suspended, pooyaalamdari will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, pooyaalamdari will be able to comment and publish posts again.
Once unpublished, all posts by pooyaalamdari will become hidden and only accessible to themselves.
If pooyaalamdari is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to pooyaalamdari.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag pooyaalamdari:
Unflagging pooyaalamdari will restore default visibility to their posts.
Top comments (0)