T-13 to HW Due

Chapter 6 in Cooper

  • initialize is the Ruby Version of __init__
  • global variables are indicated with a $ (121)
  • local variables (121)
  • instance variables are indicated with a @, and propagate well through an object declared as some class (121-122)
  • class variables are signified with a @@, and are useful for storing information relevant to all objects of a class (122)
  • class methods and instance methods (124)
  • a class can inherent from only one other class, and methods it already has may be suplemented with methods in the parent class with the super method, otherwise the newer method overrides the older one. This means that methods you write can override the Ruby’s methods (127-128)

Ruby Bits I

  • the compact method takes out any nils in a string

Improving Sublime Text 2

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s