Skip to content

maxcoto/ruby-interface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Interface

Interface pattern implementation for Ruby

Example

You have to include interface.rb to your project and then...

class Food
  include Interface

  needs_implementation :taste
end

class Donut < Food
end
$> Donut.new.taste
Interface::NotImplementedError: Donut needs to implement taste for Food

About

Interface pattern implementation for Ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages