Module: Piglet::Inout::Output
- Included in:
- Describe, Dump, Explain, Illustrate, Store
- Defined in:
- lib/piglet/inout/output.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#relation ⇒ Object
readonly
Returns the value of attribute relation.
Instance Method Summary collapse
Instance Attribute Details
#relation ⇒ Object (readonly)
Returns the value of attribute relation.
6 7 8 |
# File 'lib/piglet/inout/output.rb', line 6 def relation @relation end |
Instance Method Details
#initialize(relation) ⇒ Object
8 9 10 |
# File 'lib/piglet/inout/output.rb', line 8 def initialize(relation) @relation = relation end |
#to_s ⇒ Object
12 13 14 |
# File 'lib/piglet/inout/output.rb', line 12 def to_s "#{self.class.name.split(/::/).last.upcase} #{@relation.alias}" end |