Skip to content

Instantly share code, notes, and snippets.

@cheeyeo
Created November 2, 2010 11:35
Show Gist options
  • Save cheeyeo/659515 to your computer and use it in GitHub Desktop.
Save cheeyeo/659515 to your computer and use it in GitHub Desktop.
A different text object for Adapter Pattern
class DifferentTextObject
attr_accessor :string, :color, :size_mm
def initialize(string,color,size_mm)
@string= string
@color = color
@size_mm = size_mm
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment