Class: Assertion::Xptn

Inherits:
Struct
  • Object
show all
Defined in:
lib/lax/source.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(a, x) ⇒ Xptn

Returns a new instance of Xptn.



37
38
39
40
# File 'lib/lax/source.rb', line 37

def initialize(a, x)
  super
  %w{name src matcher args}.each {|m| send "#{m}=", a.send(m)}
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



27
28
29
# File 'lib/lax/source.rb', line 27

def args
  @args
end

#matcherObject

Returns the value of attribute matcher.



27
28
29
# File 'lib/lax/source.rb', line 27

def matcher
  @matcher
end

#nameObject

Returns the value of attribute name.



27
28
29
# File 'lib/lax/source.rb', line 27

def name
  @name
end

#srcObject

Returns the value of attribute src.



27
28
29
# File 'lib/lax/source.rb', line 27

def src
  @src
end

Instance Method Details

#pass?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/lax/source.rb', line 29

def pass?
  false
end

#valueObject



33
34
35
# File 'lib/lax/source.rb', line 33

def value
  nil
end