class Thyng
Constants
- VERSION
Public Class Methods
aspect_accessor(aspect)
click to toggle source
# File lib/thyng.rb, line 23 def self.aspect_accessor aspect aspect_reader aspect aspect_writer aspect end
aspect_reader(aspect)
click to toggle source
# File lib/thyng.rb, line 17 def self.aspect_reader aspect define_method aspect, -> { fetch(aspect) } end
aspect_writer(aspect)
click to toggle source
# File lib/thyng.rb, line 11 def self.aspect_writer aspect define_method "#{aspect}=", ->(value) { self[aspect] = value } end
new(args={})
click to toggle source
# File lib/thyng.rb, line 5 def initialize(args={}) args.each{ |attribute, value| send("#{attribute}=", value) } end