Class: PostPolicy::DataSource::Value

Inherits:
Base
  • Object
show all
Defined in:
lib/postpolicy/plugins/datasource/value.rb

Instance Method Summary collapse

Methods inherited from Base

#exists?

Constructor Details

#initialize(values) ⇒ Value

Returns a new instance of Value.



6
7
8
# File 'lib/postpolicy/plugins/datasource/value.rb', line 6

def initialize( values )
  @values = [values].flatten #make it always an array
end