lib/pstore.rb in pstore-0.1.2 vs lib/pstore.rb in pstore-0.1.3

- old
+ new

@@ -324,11 +324,11 @@ # puts wiki[key] # end # end # class PStore - VERSION = "0.1.2" + VERSION = "0.1.3" RDWR_ACCESS = {mode: IO::RDWR | IO::CREAT | IO::BINARY, encoding: Encoding::ASCII_8BIT}.freeze RD_ACCESS = {mode: IO::RDONLY | IO::BINARY, encoding: Encoding::ASCII_8BIT}.freeze WR_ACCESS = {mode: IO::WRONLY | IO::CREAT | IO::TRUNC | IO::BINARY, encoding: Encoding::ASCII_8BIT}.freeze @@ -485,12 +485,10 @@ # store.keys # => [:foo, :bar, :baz] # end # end # # Raises an exception if called outside a transaction block. - # - # PStore#roots is an alias for PStore#keys. def keys in_transaction @table.keys end alias roots keys @@ -502,12 +500,10 @@ # store.key?(:foo) # => true # end # end # # Raises an exception if called outside a transaction block. - # - # PStore#root? is an alias for PStore#key?. def key?(key) in_transaction @table.key? key end alias root? key? @@ -519,22 +515,22 @@ def path @filename end # Exits the current transaction block, committing any changes - # specified in the transaction block. - # See {Committing or Aborting}[rdoc-ref:PStore@Committing+or+Aborting]. + # specified in the + # {transaction block}[rdoc-ref:PStore@The+Transaction+Block]. # # Raises an exception if called outside a transaction block. def commit in_transaction @abort = false throw :pstore_abort_transaction end # Exits the current transaction block, discarding any changes - # specified in the transaction block. - # See {Committing or Aborting}[rdoc-ref:PStore@Committing+or+Aborting]. + # specified in the + # {transaction block}[rdoc-ref:PStore@The+Transaction+Block]. # # Raises an exception if called outside a transaction block. def abort in_transaction @abort = true