Class: String
- Inherits:
-
Object
show all
- Includes:
- Rtml::Rules::DomValidation
- Defined in:
- lib/extensions/string.rb
Instance Method Summary
collapse
Instance Method Details
#to_controller ⇒ Object
4
5
6
7
8
9
|
# File 'lib/extensions/string.rb', line 4
def to_controller
camel = self.camelize
"#{camel}Controller".constantize
rescue NameError
camel.constantize
end
|
#to_tml_simulator ⇒ Object
16
17
18
|
# File 'lib/extensions/string.rb', line 16
def to_tml_simulator
Rtml::Test::Simulator.new(self)
end
|
#valid_tml? ⇒ Boolean
11
12
13
14
|
# File 'lib/extensions/string.rb', line 11
def valid_tml?
validate_tml(self)
true
end
|