Skip to content

Navigation Menu

Sign up
shurizzlePublic

About

OOP in elixir for teh lulz

Resources

Stars

8 stars

Watchers

1 watching

Forks

Latest commit

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

OOP

FOR TEH LULZ

use OOP
class LULZ do
 attr lulz
 attr_writer lol1
 attr_reader [lol2, :lol3]
 def initialize do
 @lulz = "STUFF"
 @lol1 = 1
 @lol2 = 2
 @lol3 = 3
 end
end
lulz = LULZ.new
lulz.lulz # "STUFF"
lulz.lulz("STAHP") # "STAHP"
lulz.lol1 # ** (UndefinedFunctionError) undefined function: LULZ.lol1/1
lulz.lol2 # 2
lulz.lol3 # 3
lulz.lol2("LOL") # ** (UndefinedFunctionError) undefined function: LULZ.lol2/2

About

OOP in elixir for teh lulz

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /