Class: RegexpPreview::MultiLine
- Inherits:
- 
      Object
      
        - Object
- RegexpPreview::MultiLine
 
- Defined in:
- lib/regexp_preview/multi_line.rb
Instance Attribute Summary collapse
- 
  
    
      #file  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute file. 
- 
  
    
      #format  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute format. 
- 
  
    
      #params  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute params. 
Instance Method Summary collapse
- 
  
    
      #initialize(file, format, params = {})  ⇒ MultiLine 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of MultiLine. 
- #matches_json ⇒ Object
Constructor Details
#initialize(file, format, params = {}) ⇒ MultiLine
Returns a new instance of MultiLine.
| 5 6 7 8 9 | # File 'lib/regexp_preview/multi_line.rb', line 5 def initialize(file, format, params = {}) @file = file @format = format @params = params[:params] end | 
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
| 3 4 5 | # File 'lib/regexp_preview/multi_line.rb', line 3 def file @file end | 
#format ⇒ Object (readonly)
Returns the value of attribute format.
| 3 4 5 | # File 'lib/regexp_preview/multi_line.rb', line 3 def format @format end | 
#params ⇒ Object (readonly)
Returns the value of attribute params.
| 3 4 5 | # File 'lib/regexp_preview/multi_line.rb', line 3 def params @params end | 
Instance Method Details
#matches_json ⇒ Object
| 11 12 13 14 15 16 17 18 19 20 21 | # File 'lib/regexp_preview/multi_line.rb', line 11 def matches_json { params: { setting: { # for vue.js regexp: nil, time_format: nil, } }, matches: matches.compact, } end |