Skip to content

Instantly share code, notes, and snippets.

View StephenFiser's full-sized avatar

Stephen Fiser StephenFiser

View GitHub Profile
> ralph.class
> ralph.send(:bark)
> load 'dog.rb'
> floyd = Dog.new
> floyd.bark
> floyd.walk
> load 'dog.rb'
> bob = Dog.new("Bob", "Medium")
> bob.name
> load 'animal.rb'
> sam = Dog.new("sam", "large", "blue")
> sam.walk
> sam.eat
> sam.class.superclass
require 'open-uri'
class Webpage
attr_reader :address
def initialize(address)
@address = address
end
require 'open-uri'
class Webpage
attr_reader :address
def initialize(address)
@address = address
end
0xc2Cca14dfC33f2401b0cd0Ff2C2B1a53796cD89A