Title / Description
Code class Sathia def full_name "Sathianarayanan Sundaram" # String end def working_in type=:current experience = { current: 'Hoppr', past: 'Cloudmint'} # Hash experience[type] end def is_a 'Programmer' end def hobbies ['Coding', 'Music', 'Learning'] #Array end def skills { 'programing' => ['Ruby', 'Python', 'PHP'], 'platform' => ['Ruby on rails', 'CakePHP', 'Node.js'], 'frontend' => ['Html', 'css', 'Javascript'] } end def links links = {} ['facebook', 'twitter', 'github'].each do |network| links[network] = "http://www.#{network}.com/sathia27" # network is facebook, twitter end end end Eg: geek = Sathia.new geek.full_name # "Sathianrayanan Sundaram"
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code