Class: Plumb::Metadata

Inherits:
Object
  • Object
show all
Includes:
Composable
Defined in:
lib/plumb/metadata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#parse, #resolve

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

#metadataObject (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