Class: Seatbelt::Translator::Config
- Inherits:
-
Object
- Object
- Seatbelt::Translator::Config
- Defined in:
- lib/seatbelt/translator.rb
Class Method Summary collapse
- .default_model_class ⇒ Object
- .default_model_class=(klass) ⇒ Object
- .name_regex ⇒ Object
- .name_regex=(regexp) ⇒ Object
- .namespace ⇒ Object
- .namespace=(namespace) ⇒ Object
Class Method Details
.default_model_class ⇒ Object
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_regex ⇒ Object
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 |
.namespace ⇒ Object
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 |