Skip to content

Instantly share code, notes, and snippets.

@marioaquino
Last active December 19, 2015 08:59
Show Gist options
  • Select an option

  • Save marioaquino/5930031 to your computer and use it in GitHub Desktop.

Select an option

Save marioaquino/5930031 to your computer and use it in GitHub Desktop.
ISP in Ruby
class Drone
def launch_missiles_at(x, y, z)
end
def take_picture_of(x, y, z)
end
def take_off
puts 'taking off...'
end
def land
puts 'landing...'
end
def fly_to(x, y, z)
puts "flying to x: #{x} y: #{y} z: #{z}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment