Class: Arf::Types::Streamer
- Inherits:
-
Object
- Object
- Arf::Types::Streamer
- Defined in:
- lib/arf/types/streamer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type) ⇒ Streamer
constructor
A new instance of Streamer.
- #resolved_type(resolver) ⇒ Object
Constructor Details
#initialize(type) ⇒ Streamer
Returns a new instance of Streamer.
10 11 12 |
# File 'lib/arf/types/streamer.rb', line 10 def initialize(type) @type = type end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
8 9 10 |
# File 'lib/arf/types/streamer.rb', line 8 def type @type end |
Class Method Details
.[](type) ⇒ Object
6 |
# File 'lib/arf/types/streamer.rb', line 6 def self.[](type) = new(type) |
Instance Method Details
#resolved_type(resolver) ⇒ Object
14 15 16 17 18 |
# File 'lib/arf/types/streamer.rb', line 14 def resolved_type(resolver) return type if type.is_a? Symbol @resolved_type ||= resolver.find_type(type) end |