Class: RegexpTree::Special

Inherits:
Elt show all
Defined in:
lib/regexptree.rb

Constant Summary

Constants inherited from RegexpTree

EmptySequence, EmptySet

Instance Method Summary collapse

Methods inherited from RegexpTree

#*, #+, alt, backref, charclass, #closure, #empty_sequence?, #empty_set?, #group, inherited, #inspect, linebeg, lineend, #lookahead, #negative_lookahead, non_word_boundary, #nongreedy_closure, #nongreedy_ntimes, #nongreedy_optional, #nongreedy_positive_closure, #nongreedy_rep, #ntimes, #optional, #paren, #parenthesize, #positive_closure, #pretty_print, previous_match, #regexp, #rep, rep, seq, str, strbeg, strend, strlineend, #to_s, word_boundary, #|

Constructor Details

#initialize(str) ⇒ Special

Returns a new instance of Special.



467
468
469
# File 'lib/regexptree.rb', line 467

def initialize(str)
  @str = str
end

Instance Method Details

#case_insensitive?Boolean

Returns:

  • (Boolean)


471
472
473
# File 'lib/regexptree.rb', line 471

def case_insensitive?
  true
end

#downcaseObject



479
480
481
# File 'lib/regexptree.rb', line 479

def downcase
  self
end

#multiline_insensitive?Boolean

Returns:

  • (Boolean)


475
476
477
# File 'lib/regexptree.rb', line 475

def multiline_insensitive?
  true
end

#pretty_format(out) ⇒ Object



483
484
485
# File 'lib/regexptree.rb', line 483

def pretty_format(out)
  out.text @str
end