Skip to content

Instantly share code, notes, and snippets.

@nathankleyn
Created February 6, 2012 11:47
Show Gist options
  • Save nathankleyn/1751699 to your computer and use it in GitHub Desktop.
Save nathankleyn/1751699 to your computer and use it in GitHub Desktop.
Gist #7 For "Functional Programming Techniques With Ruby: Part I"
class CssBlock
attr_reader :selector, :properties
def initialize(selector, properties = {})
@selector = selector.dup.freeze
@properties = properties.dup.freeze
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment