module FinerStruct
Constants
- VERSION
Public Class Methods
Immutable(*attribute_names)
click to toggle source
# File lib/finer_struct/named_immutable.rb, line 5 def self.Immutable(*attribute_names) Named.build_class(Immutable, attribute_names) end
Mutable(*attribute_names)
click to toggle source
# File lib/finer_struct/named_mutable.rb, line 5 def self.Mutable(*attribute_names) Named.build_class(Mutable, attribute_names) do attribute_names.each do |name| define_method(:"#{name}=") {|value| @attributes[name] = value } end end end