Class: BEL::Language::Comment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



13
14
15
# File 'lib/bel/language.rb', line 13

def text
  @text
end

Instance Method Details

#to_belObject Also known as: to_s



14
15
16
# File 'lib/bel/language.rb', line 14

def to_bel
  %Q{##{self.text}}
end