Class: Crystal::Format

Inherits:
String show all
Defined in:
lib/crystal/support/format.rb

Constant Summary

Constants inherited from String

String::JS_ESCAPE_MAP

Instance Method Summary collapse

Methods inherited from String

#html_escape, #js_escape, #json_escape, #marks, #to_xhtml

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m) ⇒ Object



3
4
5
6
7
# File 'lib/crystal/support/format.rb', line 3

def method_missing m
  m = m.to_s
  super unless m[-1..-1] == '?'
  self == m[0..-2]
end