Class: CutePrint::SourceLabel Private
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
-
#initialize(block, method) ⇒ SourceLabel
constructor
private
A new instance of SourceLabel.
- #to_s ⇒ Object private
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_s ⇒ Object
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 |