Class: Hecks::IR::One

Inherits:
Struct
  • Object
show all
Defined in:
lib/hecks/ir.rb

Overview

A field that holds one construct, or nothing. &.to_h, never a crash on an undeclared lifecycle.

Instance Attribute Summary collapse

Instance Attribute Details

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



74
75
76
# File 'lib/hecks/ir.rb', line 74

def source
  @source
end