Class: LLT::FormBuilder::PronounSegments

Inherits:
Object
  • Object
show all
Extended by:
Helpers::Constantize
Includes:
Helpers::Initialize
Defined in:
lib/llt/form_builder/helpers/pronoun_segments.rb

Defined Under Namespace

Classes: PronounAliqui, PronounHic, PronounIdem, PronounIlle, PronounIpse, PronounIs, PronounIste, PronounQui, PronounQuicumque, PronounQuidam, PronounQuilibet, PronounQuinam, PronounQuispiam, PronounQuisquam, PronounQuisqueS, PronounQuisquis, PronounQuivis, PronounUnusquisque, PronounUnusquisqueS, PronounUter, PronounUterque

Constant Summary collapse

PronounQuis =
PronounQui
PronounQuisque =
PronounQuisqueS
PronounAliquis =
PronounAliqui

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ PronounSegments

Returns a new instance of PronounSegments.



33
34
35
# File 'lib/llt/form_builder/helpers/pronoun_segments.rb', line 33

def initialize(args)
  extract_args!(args)
end

Class Method Details

.get(request, args) ⇒ Object



11
12
13
14
# File 'lib/llt/form_builder/helpers/pronoun_segments.rb', line 11

def get(request, args)
  cl = constant_by_type(args[:inflection_class], prefix: "pronoun", namespace: self)
  cl.new(args).send(request)
end

.n(const) ⇒ Object



28
29
30
# File 'lib/llt/form_builder/helpers/pronoun_segments.rb', line 28

def n(const)
  LLT::Constants::Particles.const_get(const)
end

.particle(arg) ⇒ Object



16
17
18
# File 'lib/llt/form_builder/helpers/pronoun_segments.rb', line 16

def particle(arg)
  define_method(:particle) { arg }
end

.prefixed_particle(arg) ⇒ Object



24
25
26
# File 'lib/llt/form_builder/helpers/pronoun_segments.rb', line 24

def prefixed_particle(arg)
  define_method(:prefixed_particle) { arg }
end

.stem(arg) ⇒ Object



20
21
22
# File 'lib/llt/form_builder/helpers/pronoun_segments.rb', line 20

def stem(arg)
  define_method(:stem) { arg }
end

Instance Method Details

#init_keysObject



37
38
39
# File 'lib/llt/form_builder/helpers/pronoun_segments.rb', line 37

def init_keys
  i{ casus numerus sexus }
end

#n(const) ⇒ Object



41
42
43
# File 'lib/llt/form_builder/helpers/pronoun_segments.rb', line 41

def n(const)
  self.class.n(const)
end

#particleObject



45
46
47
# File 'lib/llt/form_builder/helpers/pronoun_segments.rb', line 45

def particle
  ""
end

#prefixed_particleObject



49
50
51
# File 'lib/llt/form_builder/helpers/pronoun_segments.rb', line 49

def prefixed_particle
  ""
end