Class: BEL::Script::StatementGroup

Inherits:
Struct
  • Object
show all
Defined in:
lib/bel/parse_objects.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#annotationsObject

Returns the value of attribute annotations

Returns:

  • the current value of annotations



96
97
98
# File 'lib/bel/parse_objects.rb', line 96

def annotations
  @annotations
end

#nameObject

Returns the value of attribute name

Returns:

  • the current value of name



96
97
98
# File 'lib/bel/parse_objects.rb', line 96

def name
  @name
end

#statementsObject

Returns the value of attribute statements

Returns:

  • the current value of statements



96
97
98
# File 'lib/bel/parse_objects.rb', line 96

def statements
  @statements
end

Instance Method Details

#to_sObject



97
98
99
100
101
102
103
# File 'lib/bel/parse_objects.rb', line 97

def to_s
  name = self.name
  if NonWordMatcher.match name
    name = %Q{"#{name}"}
  end
  %Q{SET STATEMENT_GROUP = #{name}}
end