Class: Bparity::Formal::Domain

Inherits:
Array
  • Object
show all
Defined in:
lib/bparity/formal/bounded.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(values, truncated: false) ⇒ Domain

Returns a new instance of Domain.



11
12
13
14
# File 'lib/bparity/formal/bounded.rb', line 11

def initialize(values, truncated: false)
  super(values)
  @truncated = truncated
end

Instance Attribute Details

#truncatedObject (readonly)

Returns the value of attribute truncated.



9
10
11
# File 'lib/bparity/formal/bounded.rb', line 9

def truncated
  @truncated
end