Class: String

Inherits:
Object
  • Object
show all
Includes:
Rtml::Rules::DomValidation
Defined in:
lib/extensions/string.rb

Direct Known Subclasses

Rtml::Test::TmlApplication::Receipt

Instance Method Summary collapse

Instance Method Details

#to_controllerObject



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_simulatorObject



16
17
18
# File 'lib/extensions/string.rb', line 16

def to_tml_simulator
  Rtml::Test::Simulator.new(self)
end

#valid_tml?Boolean

Returns:

  • (Boolean)


11
12
13
14
# File 'lib/extensions/string.rb', line 11

def valid_tml?
  validate_tml(self)
  true
end