Class: Assertion::Xptn
- Inherits:
-
Struct
- Object
- Struct
- Assertion::Xptn
- Defined in:
- lib/lax/source.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#matcher ⇒ Object
Returns the value of attribute matcher.
-
#name ⇒ Object
Returns the value of attribute name.
-
#src ⇒ Object
Returns the value of attribute src.
Instance Method Summary collapse
-
#initialize(a, x) ⇒ Xptn
constructor
A new instance of Xptn.
- #pass? ⇒ Boolean
- #value ⇒ Object
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
#args ⇒ Object
Returns the value of attribute args.
27 28 29 |
# File 'lib/lax/source.rb', line 27 def args @args end |
#matcher ⇒ Object
Returns the value of attribute matcher.
27 28 29 |
# File 'lib/lax/source.rb', line 27 def matcher @matcher end |
#name ⇒ Object
Returns the value of attribute name.
27 28 29 |
# File 'lib/lax/source.rb', line 27 def name @name end |
#src ⇒ Object
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
29 30 31 |
# File 'lib/lax/source.rb', line 29 def pass? false end |
#value ⇒ Object
33 34 35 |
# File 'lib/lax/source.rb', line 33 def value nil end |