Class: Graffiti::SquishAssertValue
- Inherits:
-
Object
- Object
- Graffiti::SquishAssertValue
- Defined in:
- lib/graffiti/squish.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, new, updated) ⇒ SquishAssertValue
constructor
A new instance of SquishAssertValue.
-
#new? ⇒ Boolean
true if node was inserted into resource during value generation and a corresponding record should be inserted into an internal resource table later.
-
#updated? ⇒ Boolean
true if the node value is set in the UPDATE section of the Squish statement.
Constructor Details
#initialize(value, new, updated) ⇒ SquishAssertValue
Returns a new instance of SquishAssertValue.
461 462 463 464 465 |
# File 'lib/graffiti/squish.rb', line 461 def initialize(value, new, updated) @value = value @new = new @updated = updated end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
467 468 469 |
# File 'lib/graffiti/squish.rb', line 467 def value @value end |
Instance Method Details
#new? ⇒ Boolean
true if node was inserted into resource during value generation and a corresponding record should be inserted into an internal resource table later
473 474 475 |
# File 'lib/graffiti/squish.rb', line 473 def new? @new end |
#updated? ⇒ Boolean
true if the node value is set in the UPDATE section of the Squish statement
479 480 481 |
# File 'lib/graffiti/squish.rb', line 479 def updated? @updated end |