Class: Rasti::Form::Types::Regexp
- Inherits:
-
Object
- Object
- Rasti::Form::Types::Regexp
- Includes:
- Formatable
- Defined in:
- lib/rasti/form/types/regexp.rb
Class Method Summary collapse
Instance Method Summary collapse
- #to_s ⇒ Object (also: #inspect)
Methods included from Castable
Class Method Details
.[](format) ⇒ Object
8 9 10 |
# File 'lib/rasti/form/types/regexp.rb', line 8 def self.[](format) new format end |
Instance Method Details
#to_s ⇒ Object Also known as: inspect
12 13 14 |
# File 'lib/rasti/form/types/regexp.rb', line 12 def to_s "#{self.class}[#{format.inspect}]" end |