Class: Seatbelt::Translator::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/seatbelt/translator.rb

Class Method Summary collapse

Class Method Details

.default_model_classObject



26
27
28
# File 'lib/seatbelt/translator.rb', line 26

def self.default_model_class
  @default_model_class
end

.default_model_class=(klass) ⇒ Object



30
31
32
# File 'lib/seatbelt/translator.rb', line 30

def self.default_model_class=(klass)
  @default_model_class = klass
end

.name_regexObject



18
19
20
# File 'lib/seatbelt/translator.rb', line 18

def self.name_regex
  @name_regex ||= /^\s*\w*[:,]/
end

.name_regex=(regexp) ⇒ Object



22
23
24
# File 'lib/seatbelt/translator.rb', line 22

def self.name_regex=(regexp)
  @name_regex = regexp
end

.namespaceObject



10
11
12
# File 'lib/seatbelt/translator.rb', line 10

def self.namespace
  @namespace ||= ""
end

.namespace=(namespace) ⇒ Object



14
15
16
# File 'lib/seatbelt/translator.rb', line 14

def self.namespace=(namespace)
  @namespace =  namespace
end