Module: RTM::Topology::Modifier
Overview
Manages Modifiers which may be applied to Constructs (or only to Topics?!)
Instance Attribute Summary
-
- (#call) default
readonly
The default modifier is #nop.
Instance Method Summary
-
- (#call) best_name
The best_name Modifier returns the best name for a Construct: {|x| x.best_name}.
-
- (#call) nop
The nop Modifier just returns the construct given as is: {|x| x}.
-
- (#call) reference
The reference Modifier returns a reference for a Construct: {|x| x.reference}.
Instance Attribute Details
- (#call) default (readonly)
The default modifier is #nop
120 121 122 |
# File 'rtm/lib/rtm/topology.rb', line 120 def default @default end |
Instance Method Details
- (#call) best_name
The best_name Modifier returns the best name for a Construct: {|x| x.best_name}
104 105 106 |
# File 'rtm/lib/rtm/topology.rb', line 104 def best_name Proc.new {|x| x.best_name} end |
- (#call) nop
The nop Modifier just returns the construct given as is: {|x| x}
97 98 99 |
# File 'rtm/lib/rtm/topology.rb', line 97 def nop Proc.new {|x| x} end |
- (#call) reference
The reference Modifier returns a reference for a Construct: {|x| x.reference}
111 112 113 |
# File 'rtm/lib/rtm/topology.rb', line 111 def reference Proc.new {|x| x.reference} end |