Module: Literal::Attributes

Includes:
Attributable
Included in:
Class, Decorator
Defined in:
lib/literal/attributes.rb

Constant Summary

Constants included from Attributable

Literal::Attributable::Visibility

Constants included from Monads

Monads::Either, Monads::Left, Monads::Maybe, Monads::Nothing, Monads::Result, Monads::Right, Monads::Some

Instance Method Summary collapse

Methods included from Attributable

#attribute, #define_literal_methods, #literal_attributes, #literal_extension

Methods included from Types

#_Any, #_Array, #_Boolean, #_Callable, #_Class, #_Constraint, #_Descendant, #_Enumerable, #_Falsy, #_Float, #_Frozen, #_Hash, #_Integer, #_Interface, #_Intersection, #_Is, #_JSONData, #_Lambda, #_Map, #_Never, #_Nilable, #_Not, #_Procable, #_Range, #_Set, #_Shape, #_String, #_Symbol, #_Truthy, #_Tuple, #_Union, #_Void

Methods included from Monads

#Either, #Left, #Maybe, #Result, #Right, #Some, #Success

Instance Method Details

#generate_literal_initializerObject (private)



8
9
10
# File 'lib/literal/attributes.rb', line 8

def generate_literal_initializer
	Generators::IVarInitializer.new(literal_attributes).call
end

#generate_literal_reader(attribute) ⇒ Object (private)



16
17
18
# File 'lib/literal/attributes.rb', line 16

def generate_literal_reader(attribute)
	Generators::IVarReader.new(attribute).call
end

#generate_literal_writer(attribute) ⇒ Object (private)



12
13
14
# File 'lib/literal/attributes.rb', line 12

def generate_literal_writer(attribute)
	Generators::IVarWriter.new(attribute).call
end