Module: Familia::Settings

Included in:
Familia, Horreum::ClassMethods
Defined in:
lib/familia/settings.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#db=(value) ⇒ Object (writeonly)

Sets the attribute db

Parameters:

  • value

    the value to set the attribute db to.



13
14
15
# File 'lib/familia/settings.rb', line 13

def db=(value)
  @db = value
end

#delim(val = nil) ⇒ Object



15
16
17
18
# File 'lib/familia/settings.rb', line 15

def delim(val = nil)
  @delim = val if val
  @delim
end

#prefix(val = nil) ⇒ Object



20
21
22
23
# File 'lib/familia/settings.rb', line 20

def prefix(val = nil)
  @prefix = val if val
  @prefix
end

#suffix(val = nil) ⇒ Object



25
26
27
28
# File 'lib/familia/settings.rb', line 25

def suffix(val = nil)
  @suffix = val if val
  @suffix
end

#ttl=(value) ⇒ Object (writeonly)

Sets the attribute ttl

Parameters:

  • value

    the value to set the attribute ttl to.



13
14
15
# File 'lib/familia/settings.rb', line 13

def ttl=(value)
  @ttl = value
end

Instance Method Details

#default_suffixObject

We define this do-nothing method because it reads better than simply Familia.suffix in some contexts.



32
33
34
# File 'lib/familia/settings.rb', line 32

def default_suffix
  suffix
end