Class: Rasti::Form::Types::Regexp

Inherits:
Object
  • Object
show all
Includes:
Formatable
Defined in:
lib/rasti/form/types/regexp.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Castable

#cast

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_sObject Also known as: inspect



12
13
14
# File 'lib/rasti/form/types/regexp.rb', line 12

def to_s
  "#{self.class}[#{format.inspect}]"
end