This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
md5_digest = Digest::MD5.hexdigest(real_password.upcase).downcase | |
sha1_digest = Digest::SHA1.hexdigest(md5_digest) | |
sha1_digest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
include HTTParty | |
parser Proc.new {|data| ...} | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module SomeNamespace::SomeModule | |
# how do I get this method mixed into the class below? | |
def some_module_method(x, y, z) | |
end | |
end | |
class SomeNamespace::SomeClass | |
# include SomeNamespace::SomeModule | |
# update: it seems like instead of "include", I should use "extend"... |