Skip to content

Instantly share code, notes, and snippets.

@msroot
Last active March 29, 2016 00:32
Show Gist options
  • Select an option

  • Save msroot/730c4fce936ef87cdb24 to your computer and use it in GitHub Desktop.

Select an option

Save msroot/730c4fce936ef87cdb24 to your computer and use it in GitHub Desktop.
class Rouxo
def initialize(xroma, ufasma, onoma)
@xroma = xroma
@ufasma= ufasma
@onoma= onoma
end
def xroma
@xroma
end
def ufasma
@ufasma
end
def onoma
@onoma
end
end
ta_rouxa_mou = []
ta_rouxa_mou << Rouxo.new("kokino", "emrime", "kaskol")
ta_rouxa_mou << Rouxo.new("mple", "bambakero", "fousta")
ta_rouxa_mou.map { |rouxo|
puts rouxo.onoma
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment