Module: FinerStruct

Defined in:
lib/finer_struct/named.rb,
lib/finer_struct/mutable.rb,
lib/finer_struct/version.rb,
lib/finer_struct/immutable.rb

Defined Under Namespace

Modules: Named Classes: Immutable, Mutable

Constant Summary collapse

VERSION =
"0.0.7"

Class Method Summary collapse

Class Method Details

.Immutable(*attribute_names) ⇒ Object



28
29
30
# File 'lib/finer_struct/immutable.rb', line 28

def self.Immutable(*attribute_names)
  Named.build_class(Immutable, attribute_names)
end

.Mutable(*attribute_names) ⇒ Object



40
41
42
# File 'lib/finer_struct/mutable.rb', line 40

def self.Mutable(*attribute_names)
  Named.build_class(Mutable, attribute_names)
end