Module: Cassie::Statements::Statement::Preparation::ClassMethods

Included in:
Cassie::Statements::Statement, Cassie::Statements::Statement::Preparation
Defined in:
lib/cassie/statements/statement/preparation.rb

Instance Method Summary collapse

Instance Method Details

#prepareBoolean

Returns whether the statement will be prepared when executed.

Returns:

  • (Boolean)

    whether the statement will be prepared when executed



37
38
39
# File 'lib/cassie/statements/statement/preparation.rb', line 37

def prepare
  @prepare
end

#prepare=(val) ⇒ Object



41
42
43
# File 'lib/cassie/statements/statement/preparation.rb', line 41

def prepare=(val)
  @prepare = !!val
end

#prepare?Boolean

Returns indicating whether the statement will be prepared when executed.

Returns:

  • (Boolean)

    indicating whether the statement will be prepared when executed



46
47
48
# File 'lib/cassie/statements/statement/preparation.rb', line 46

def prepare?
  !!prepare
end