Class: CutePrint::SourceLabel Private

Inherits:
Object
  • Object
show all
Defined in:
lib/cute_print/source_label.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(block, method) ⇒ SourceLabel

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of SourceLabel.



7
8
9
10
# File 'lib/cute_print/source_label.rb', line 7

def initialize(block, method)
  @block = block
  @method = method
end

Instance Method Details

#to_sObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



12
13
14
# File 'lib/cute_print/source_label.rb', line 12

def to_s
  "#{block_code} is "
end