Class: Goling::Replacement

Inherits:
Object
  • Object
show all
Defined in:
lib/goling/reduction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Replacement

Returns a new instance of Replacement.



8
9
10
11
# File 'lib/goling/reduction.rb', line 8

def initialize args
  @sexp   = args[:sexp]
  @inline = args[:inline] || false
end

Instance Attribute Details

#sexpObject (readonly)

Returns the value of attribute sexp.



6
7
8
# File 'lib/goling/reduction.rb', line 6

def sexp
  @sexp
end

Instance Method Details

#inline?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/goling/reduction.rb', line 13

def inline?
  @inline
end