Class: Chordproko::Newline

Inherits:
Object
  • Object
show all
Defined in:
lib/chordproko/newline.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ Newline

Returns a new instance of Newline.



4
5
6
# File 'lib/chordproko/newline.rb', line 4

def initialize content
  @content = content
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



3
4
5
# File 'lib/chordproko/newline.rb', line 3

def content
  @content
end

Instance Method Details

#each(&block) ⇒ Object



7
8
9
# File 'lib/chordproko/newline.rb', line 7

def each(&block)
  [self].each(&block)
end

#to_sObject



10
11
12
# File 'lib/chordproko/newline.rb', line 10

def to_s
  ""
end