Class: Cheri::Explorer::SearchArgs
- Inherits:
-
Object
- Object
- Cheri::Explorer::SearchArgs
- Defined in:
- lib/cheri/explorer/explorer.rb
Overview
NameTypeValue
Instance Attribute Summary collapse
-
#gc ⇒ Object
Returns the value of attribute gc.
Instance Method Summary collapse
- #any ⇒ Object
- #clazz ⇒ Object
-
#initialize(clazz, vars = nil, any = nil) ⇒ SearchArgs
constructor
A new instance of SearchArgs.
- #vars ⇒ Object
Constructor Details
#initialize(clazz, vars = nil, any = nil) ⇒ SearchArgs
Returns a new instance of SearchArgs.
238 239 240 241 242 243 244 245 246 247 248 249 250 251 |
# File 'lib/cheri/explorer/explorer.rb', line 238 def initialize(clazz,vars=nil,any=nil) raise Cheri.type_error(clazz,String) unless String === clazz raise ArgumentError,"Invalid class "+ clazz unless /^([A-Z])((\w|::[A-Z])*)$/.match clazz @z = clazz if vars raise Cheri.type_error(vars,Array) unless Array === vars vars.each do |v| raise Cheri.type_error(v,SearchNameValue) unless SearchNameValue === v raise Cheri.type_error(v.name,Symbol) if v.name && !(Symbol === v.name) end @v = vars @a = !(any == nil || any == false) end end |
Instance Attribute Details
#gc ⇒ Object
Returns the value of attribute gc.
237 238 239 |
# File 'lib/cheri/explorer/explorer.rb', line 237 def gc @gc end |
Instance Method Details
#any ⇒ Object
261 262 263 |
# File 'lib/cheri/explorer/explorer.rb', line 261 def any @a end |
#clazz ⇒ Object
253 254 255 |
# File 'lib/cheri/explorer/explorer.rb', line 253 def clazz @z end |
#vars ⇒ Object
257 258 259 |
# File 'lib/cheri/explorer/explorer.rb', line 257 def vars @v end |