Class: Graffiti::SquishAssertValue

Inherits:
Object
  • Object
show all
Defined in:
lib/graffiti/squish.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject (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

Returns:

  • (Boolean)


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

Returns:

  • (Boolean)


479
480
481
# File 'lib/graffiti/squish.rb', line 479

def updated?
  @updated
end