Skip to content

Instantly share code, notes, and snippets.

@Sihui
Last active August 2, 2017 04:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sihui/b5d3d0afa484eb0787799323e1226546 to your computer and use it in GitHub Desktop.
Save Sihui/b5d3d0afa484eb0787799323e1226546 to your computer and use it in GitHub Desktop.
Design Pattern: Adapter and Power Adapter
class TypeCOutlet
def type_c_elec
'2.5A electricity'
end
def type_c_voltage
'220-240 voltages'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment