Class: Plumb::Metadata
- Inherits:
-
Object
- Object
- Plumb::Metadata
- Includes:
- Composable
- Defined in:
- lib/plumb/metadata.rb
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #call(result) ⇒ Object
-
#initialize(metadata) ⇒ Metadata
constructor
A new instance of Metadata.
Methods included from Composable
#>>, #[], #as_node, #build, #check, #children, #defer, #generate, included, #invalid, #invoke, #match, #not, #pipeline, #policy, #static, #to_json_schema, #to_s, #transform, #value, wrap, #|
Methods included from Callable
Constructor Details
#initialize(metadata) ⇒ Metadata
Returns a new instance of Metadata.
9 10 11 12 |
# File 'lib/plumb/metadata.rb', line 9 def initialize() @metadata = freeze end |
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
7 8 9 |
# File 'lib/plumb/metadata.rb', line 7 def @metadata end |
Instance Method Details
#==(other) ⇒ Object
14 15 16 |
# File 'lib/plumb/metadata.rb', line 14 def ==(other) other.is_a?(self.class) && @metadata == other. end |
#call(result) ⇒ Object
18 |
# File 'lib/plumb/metadata.rb', line 18 def call(result) = result |