class Estreet::LabeledStatement

Public Class Methods

new(label, body) click to toggle source
# File lib/estreet/labeled_statement.rb, line 3
def initialize(label, body)

  @label = Identifier.new(label)
  @body = body.to_statement
end

Public Instance Methods

attributes() click to toggle source
Calls superclass method
# File lib/estreet/labeled_statement.rb, line 9
def attributes
  super.merge(
    label: @label,
    body: @body
  )
end