Module: Alf::Predicate::ToProc::ProcMethods

Defined in:
lib/alf-predicate/alf/predicate/processors/to_proc.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#source_code=(value) ⇒ Object (writeonly)

Sets the attribute source_code

Parameters:

  • value

    the value to set the attribute source_code to.



6
7
8
# File 'lib/alf-predicate/alf/predicate/processors/to_proc.rb', line 6

def source_code=(value)
  @source_code = value
end

Instance Method Details

#to_ruby_literalObject Also known as: to_s, inspect



7
8
9
# File 'lib/alf-predicate/alf/predicate/processors/to_proc.rb', line 7

def to_ruby_literal
  @source_code
end