Skip to content

Instantly share code, notes, and snippets.

@DNNX
DNNX / .block
Created Feb 16, 2018 — forked from mbostock/.block
Treemap
View .block
border: no
height: 600
license: gpl-3.0
View awesome_resources_spec.rb
module AwesomeResource
def initialize(attributes = {})
attributes.each do |key, val|
reader = key
writer = "#{key}="
unless respond_to?(reader)
self.class.send(:attr_reader, key)
end
You can’t perform that action at this time.