Class: Cheri::Explorer::SearchNameValue

Inherits:
Object
  • Object
show all
Defined in:
lib/cheri/explorer/explorer.rb

Overview

SearchArgs

Instance Method Summary collapse

Constructor Details

#initialize(name, value) ⇒ SearchNameValue

Returns a new instance of SearchNameValue.



268
269
270
271
272
# File 'lib/cheri/explorer/explorer.rb', line 268

def initialize(name,value)
  @n = name
  @v = value
  @r = Regexp === value
end

Instance Method Details

#nameObject



273
274
275
# File 'lib/cheri/explorer/explorer.rb', line 273

def name
  @n
end

#rx?Boolean

Returns:

  • (Boolean)


279
280
281
# File 'lib/cheri/explorer/explorer.rb', line 279

def rx?
  @r 
end

#valueObject



276
277
278
# File 'lib/cheri/explorer/explorer.rb', line 276

def value
  @v  
end